org.jvnet.hk2.component
Interface Factory<T>
- All Superinterfaces:
- Factory<T>
- All Known Subinterfaces:
- Creator<T>, Holder<T>, Inhabitant<T>
- All Known Implementing Classes:
- AbstractCreatorImpl, AbstractInhabitantImpl, ConstructorCreator, ConstructorWomb, EventPublishingInhabitant, ExistingSingletonInhabitant, FactoryCreator, Holder.Impl, InjectableParametizedConstructorCreator, LazyInhabitant, RunLevelInhabitant, ScopedInhabitant, SingletonInhabitant
public interface Factory<T>
- extends Factory<T>
Hook to create/obtain an instance of a component from
somewhere, instead of letting the auto-depends create it
via the constructor.
Factory is by itself a component, so the factory
implementation could have everything it needs injected.
- Author:
- Kohsuke Kawaguchi
- See Also:
Service,
ContextualFactory
| Methods inherited from interface org.glassfish.hk2.Factory |
get |
Copyright © 2011 Oracle Corporation. All Rights Reserved.