public interface ConfigurationInjector
Modifier and Type | Method and Description |
---|---|
<T> T |
configure(T instance)
Configured the current instance and reigsterd necessary listener to forward config change events as
defined by the current annotations in place.
|
<T> T |
createTemplate(Class<T> templateType)
Create a template implementting the annotated methods based on current configuration data.
|
<T> ConfiguredItemSupplier<T> |
getConfiguredSupplier(ConfiguredItemSupplier<T> supplier)
Creates a supplier for configured instances of the given type
T . |
<T> T configure(T instance)
instance
- the instance to be configured<T> T createTemplate(Class<T> templateType)
templateType
- the type of the template to be created.<T> ConfiguredItemSupplier<T> getConfiguredSupplier(ConfiguredItemSupplier<T> supplier)
T
.T
- the target type.supplier
- the supplier to create new instances.T
.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.