|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.hk2.component.Inhabitants
public class Inhabitants
Factory for Inhabitants.
| Constructor Summary | |
|---|---|
Inhabitants()
|
|
| Method Summary | ||
|---|---|---|
static
|
create(Class<T> c,
Habitat habitat,
MultiMap<String,String> metadata)
Creates a Inhabitant by looking at annotations of the given type. |
|
static
|
create(T instance)
Creates a singleton wrapper around existing object. |
|
static Inhabitant<?> |
createInhabitant(Habitat habitat,
Holder<ClassLoader> classLoader,
String typeName,
MultiMap<String,String> metadata,
Inhabitant<?> lead,
Set<String> indicies)
Deprecated. |
|
static Inhabitant<?> |
createInhabitant(Habitat habitat,
Iterator<InhabitantProviderInterceptor> interceptors,
Holder<ClassLoader> classLoader,
String typeName,
MultiMap<String,String> metadata,
Inhabitant<?> lead,
InhabitantStore store,
Set<String> indicies)
|
|
static
|
getNamesFor(Inhabitant<T> i,
String indexName)
Returns the list of names the service implementation in known. |
|
static
|
wrapByScope(Class<T> c,
Creator<T> creator,
Habitat habitat)
Creates a Inhabitant by wrapping Creator to handle scoping right. |
|
static
|
wrapByScope(Creator<T> creator,
Habitat habitat,
Class<? extends Scope> scopeClass)
|
|
| 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(Habitat habitat,
Holder<ClassLoader> classLoader,
String typeName,
MultiMap<String,String> metadata,
Inhabitant<?> lead,
Set<String> indicies)
public static Inhabitant<?> createInhabitant(Habitat habitat,
Iterator<InhabitantProviderInterceptor> interceptors,
Holder<ClassLoader> classLoader,
String typeName,
MultiMap<String,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,
Habitat habitat,
MultiMap<String,String> metadata)
Inhabitant by looking at annotations of the given type.
public static <T> Inhabitant<T> wrapByScope(Class<T> c,
Creator<T> creator,
Habitat habitat)
Inhabitant by wrapping Creator to handle scoping right.
public static <T> Inhabitant<T> wrapByScope(Creator<T> creator,
Habitat 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 | |||||||||