public interface OrderedConfiguration<T>
Contribute
,
UsesConfiguration
Modifier and Type | Method and Description |
---|---|
void |
add(String id,
T object,
String... constraints)
Adds an ordered object to a service's contribution.
|
void |
addInstance(String id,
Class<? extends T> clazz,
String... constraints)
Adds an ordered object by instantiating (with dependencies) the indicated class.
|
void |
override(String id,
T object,
String... constraints)
Overrides a normally contributed object.
|
void |
overrideInstance(String id,
Class<? extends T> clazz,
String... constraints)
Instantiates an object and adds it as an override.
|
void add(String id, T object, 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 objectsobject
- to add to the service's configurationvoid override(String id, T object, String... constraints)
id
- identifies object to overrideobject
- overriding object (may be null)constraints
- constraints for the overridden object, replacing constraints for the original object (even if
omitted, in which case the override object will have no ordering constraints)void addInstance(String id, Class<? extends T> clazz, String... constraints)
id
- of contribution (used for ordering)clazz
- class to instantiateconstraints
- used to order the object relative to other contributed objectsvoid overrideInstance(String id, Class<? extends T> clazz, String... constraints)
id
- of object to overrideclazz
- to instantiateconstraints
- constraints for the overridden object, replacing constraints for the original object (even if
omitted, in which case the override object will have no ordering constraints)5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.