|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentPool
A ComponentPool provides access to the Components created by parsing
an ArooaConfiguration
.
Method Summary | |
---|---|
Iterable<ComponentTrinity> |
allTrinities()
Provide a way of iterating over all trinities. |
void |
configure(Object component)
Configure the component. |
ArooaContext |
contextFor(Object either)
Get the components ArooaContext . |
String |
getIdFor(Object either)
Provide the Id for either a component or it's proxy. |
void |
registerComponent(ComponentTrinity trinity,
String id)
Register a ComponentTrinity . |
void |
remove(Object either)
Remove a component. |
void |
save(Object either)
Possibly save the component to a persistent store, if everything is in place for this to happen. |
ComponentTrinity |
trinityFor(Object either)
Get the ComponentTrinity for either the component or
proxy. |
ComponentTrinity |
trinityForContext(ArooaContext context)
Get the ComponentTrinity for the given ArooaContext . |
ComponentTrinity |
trinityForId(String id)
Provide the ComponentTrinity for a given id, if possible. |
Method Detail |
---|
void configure(Object component) throws ArooaConfigurationException
contextFor(component).getRuntime().configure().
component
- The component or it's proxy.
ArooaConfigurationException
void save(Object either) throws ComponentPersistException
If a ComponentPersister
is in operation and the component
was registered with an id then the ComponentPersister is
invoked with the component.
either
- A component or it's proxy.
ComponentPersistException
void remove(Object either) throws ComponentPersistException
either
- A component or it's proxy.
ComponentPersistException
ArooaContext contextFor(Object either)
ArooaContext
.
either
- The component or the proxy.
ComponentTrinity trinityForContext(ArooaContext context)
ComponentTrinity
for the given ArooaContext
.
This is required for ContextHierarchyServiceFinder
.
context
- A context;
ComponentTrinity trinityFor(Object either)
ComponentTrinity
for either the component or
proxy.
either
- Either the component or the proxy.
void registerComponent(ComponentTrinity trinity, String id)
ComponentTrinity
.
trinity
- The trinity.id
- The id. May be null.String getIdFor(Object either)
either
- Either a component or it's proxy.
ComponentTrinity trinityForId(String id)
ComponentTrinity
for a given id, if possible.
id
- The id.
Iterable<ComponentTrinity> allTrinities()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |