public interface ConfigurationInjector
Modifier and Type | Method and Description |
---|---|
<T> T |
configure(T instance)
Configures the current instance and registers necessary listener to forward config change events as
defined by the current annotations in place.
|
<T> T |
configure(T instance,
org.apache.tamaya.Configuration config)
Configures the current instance and registers necessary listener to forward config change events as
defined by the current annotations in place.
|
<T> T |
createTemplate(Class<T> templateType)
Creates a template implementing the annotated methods based on current configuration data.
|
<T> T |
createTemplate(Class<T> templateType,
org.apache.tamaya.Configuration config)
Creates a template implementting the annotated methods based on current configuration data.
|
<T> org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> |
getConfiguredSupplier(org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> supplier)
Creates a supplier for configured instances of the given type
T . |
<T> org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> |
getConfiguredSupplier(org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> supplier,
org.apache.tamaya.Configuration config)
Creates a supplier for configured instances of the given type
T . |
<T> T configure(T instance)
T
- the type of the instance.instance
- the instance to be configured<T> T configure(T instance, org.apache.tamaya.Configuration config)
T
- the type of the instance.instance
- the instance to be configuredconfig
- the configuration to be used for injection.<T> T createTemplate(Class<T> templateType)
T
- the type of the template.templateType
- the type of the template to be created.<T> T createTemplate(Class<T> templateType, org.apache.tamaya.Configuration config)
T
- the type of the template.config
- the configuration to be used for backing the template.templateType
- the type of the template to be created.<T> org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> getConfiguredSupplier(org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> supplier)
T
.T
- the target type.supplier
- the supplier to create new instances.T
.<T> org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> getConfiguredSupplier(org.apache.tamaya.inject.api.ConfiguredItemSupplier<T> supplier, org.apache.tamaya.Configuration config)
T
.T
- the target type.supplier
- the supplier to create new instances.config
- the configuration to be used for backing the supplier.T
.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.