|
||||||||||
| 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(java.lang.Class<T> c,
Habitat habitat,
MultiMap<java.lang.String,java.lang.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<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
java.util.Set<java.lang.String> indicies)
|
|
static
|
getNamesFor(Inhabitant<T> i,
java.lang.String indexName)
Returns the list of names the service implementation in known. |
|
static
|
wrapByScope(java.lang.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,
java.lang.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<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
java.util.Set<java.lang.String> indicies)
public static <T> Inhabitant<T> create(T instance)
public static <T> Inhabitant<T> create(java.lang.Class<T> c,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
Inhabitant by looking at annotations of the given type.
public static <T> Inhabitant<T> wrapByScope(java.lang.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,
java.lang.Class<? extends Scope> scopeClass)
public static <T> java.util.Collection<java.lang.String> getNamesFor(Inhabitant<T> i,
java.lang.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 | |||||||||