|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrderedConfiguration<T>
Object passed into a service contributor method that allows the method provide contributed values to the service's configuration.
A service can collect contributions in three different ways:
| Method Summary | |
|---|---|
void |
add(java.lang.String id,
T object,
java.lang.String... constraints)
Adds an ordered object to a service's contribution. |
void |
addInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
Adds an ordered object by instantiating (with dependencies) the indicated class. |
void |
override(java.lang.String id,
T object,
java.lang.String... constraints)
Overrides a normally contributed object. |
void |
overrideInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
Instantiates an object and adds it as an override. |
| Method Detail |
|---|
void add(java.lang.String id,
T object,
java.lang.String... constraints)
id - a unique id for the object; the id will be fully qualified with the contributing module's idconstraints - used to order the object relative to other contributed objects
void override(java.lang.String id,
T object,
java.lang.String... constraints)
id - identifies object to overrideobject - overriding object (may be null)constraints - contrains for the overridden object, replacing constraints for the original object (even if
omitted, in which case the override object will have no orderring contraints)
void addInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
id - of contribution (used for ordering)clazz - class to instantiateconstraints - used to order the object relative to other contributed objects
void overrideInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
id - of object to overrideclazz - to instantiateconstraints - override contraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||