org.jvnet.hk2.component
Interface ContextualFactory<T>
- All Superinterfaces:
- Factory<T>
@Contract
public interface ContextualFactory<T>
- extends Factory<T>
Extension to the simple Factory that supports contextual injection.
Users who wish to use this should note that there is a slight
degradation of performance in using this feature since the implementation
needs to track various thread local context data for each injection
point that is undergoing injection by the system.
- Author:
- Jeff Trent
- See Also:
InjectionPoint
| Methods inherited from interface org.glassfish.hk2.Factory |
get |
getObject
T getObject(InjectionPoint injectionPoint,
AccessControlContext acc)
throws ComponentException
- The system calls this method to obtain a reference to the component when
injection point context information is available.
Note that injection point context information is not currently supported for use with
Holder injections.
- Parameters:
injectionPoint - the injection point for which the return object will be injectedacc - the caller's access control context that can be used to make access control decisions
- Throws:
ComponentException
Copyright © 2011 Oracle Corporation. All Rights Reserved.