public class ConfigurationResourceInjector extends AbstractResourceInjector
| Constructor and Description |
|---|
ConfigurationResourceInjector(Configuration configuration)
Initializes the ResourceInjector to inject the resources found in the given
configuration. |
| Modifier and Type | Method and Description |
|---|---|
protected <R> Optional<R> |
findResource(Class<R> requiredType)
Returns a resource of given
requiredType or an empty Optional if the resource is not registered with the
injector. |
injectorAnnotationNames, injectResourcespublic ConfigurationResourceInjector(Configuration configuration)
configuration.configuration - the Configuration to find injectable resources inprotected <R> Optional<R> findResource(Class<R> requiredType)
AbstractResourceInjectorrequiredType or an empty Optional if the resource is not registered with the
injector.findResource in class AbstractResourceInjectorR - the resource typerequiredType - the class of the resource to findCopyright © 2010–2018. All rights reserved.