|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.hk2.component.Inhabitants
@Deprecated public class Inhabitants
Factory for Inhabitants.
Constructor Summary | |
---|---|
Inhabitants()
Deprecated. |
Method Summary | ||
---|---|---|
static
|
create(Class<T> c,
ServiceLocator habitat,
Map<String,List<String>> metadata)
Deprecated. Creates a Inhabitant by looking at annotations of the given type. |
|
static
|
create(T instance)
Deprecated. Creates a singleton wrapper around existing object. |
|
static Inhabitant<?> |
createInhabitant(ServiceLocator serviceLocator,
Holder<ClassLoader> classLoader,
String typeName,
Map<String,List<String>> metadata,
Inhabitant<?> lead,
Set<String> indicies)
Deprecated. |
|
static Inhabitant<?> |
createInhabitant(ServiceLocator serviceLocator,
Iterator<InhabitantProviderInterceptor> interceptors,
Holder<ClassLoader> classLoader,
String typeName,
Map<String,List<String>> metadata,
Inhabitant<?> lead,
InhabitantStore store,
Set<String> indicies)
Deprecated. |
|
static
|
getNamesFor(Inhabitant<T> i,
String indexName)
Deprecated. Returns the list of names the service implementation in known. |
|
static
|
wrapByScope(Class<T> c,
Creator<T> creator,
ServiceLocator habitat)
Deprecated. Creates a Inhabitant by wrapping Creator to handle scoping right. |
|
static
|
wrapByScope(Creator<T> creator,
ServiceLocator habitat,
Class<? extends Scope> scopeClass)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Inhabitants()
Method Detail |
---|
public static Inhabitant<?> createInhabitant(ServiceLocator serviceLocator, Holder<ClassLoader> classLoader, String typeName, Map<String,List<String>> metadata, Inhabitant<?> lead, Set<String> indicies)
public static Inhabitant<?> createInhabitant(ServiceLocator serviceLocator, Iterator<InhabitantProviderInterceptor> interceptors, Holder<ClassLoader> classLoader, String typeName, Map<String,List<String>> metadata, Inhabitant<?> lead, InhabitantStore store, Set<String> indicies)
public static <T> Inhabitant<T> create(T instance)
public static <T> Inhabitant<T> create(Class<T> c, ServiceLocator habitat, Map<String,List<String>> metadata)
Inhabitant
by looking at annotations of the given type.
public static <T> Inhabitant<T> wrapByScope(Class<T> c, Creator<T> creator, ServiceLocator habitat)
Inhabitant
by wrapping Creator
to handle scoping right.
public static <T> Inhabitant<T> wrapByScope(Creator<T> creator, ServiceLocator habitat, Class<? extends Scope> scopeClass)
public static <T> Collection<String> getNamesFor(Inhabitant<T> i, String indexName)
T
- contract type, optionali
- instance of inhabitant to obtain its registration nameindexName
- the contract name this service is implementing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |