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, AbstractCreatorInhabitantImpl, AbstractInhabitantImpl, ConfigBean, ConstructorCreator, CreatorImpl, Dom, EventPublishingInhabitant, ExistingSingletonInhabitant, Holder.Impl, InhabitantImpl, LazyInhabitant, ScopedInhabitant

Deprecated.

@Deprecated
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

Method Summary
 
Methods inherited from interface org.glassfish.hk2.Factory
get
 



Copyright © 2013 Oracle Corporation. All Rights Reserved.