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, injectResources
public ConfigurationResourceInjector(Configuration configuration)
configuration
.configuration
- the Configuration to find injectable resources inprotected <R> Optional<R> findResource(Class<R> requiredType)
AbstractResourceInjector
requiredType
or an empty Optional if the resource is not registered with the
injector.findResource
in class AbstractResourceInjector
R
- the resource typerequiredType
- the class of the resource to findCopyright © 2010–2022. All rights reserved.