|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.inject.InstanceImpl<T>
@Module public final class InstanceImpl<T>
Factory to create instances of a bean.
Method Summary | ||
---|---|---|
T |
get()
Returns an instance of the selected bean |
|
boolean |
isAmbiguous()
Test if there are multiple beans that match the instance. |
|
boolean |
isUnsatisfied()
Test if there are any beans that match the instance. |
|
java.util.Iterator<T> |
iterator()
|
|
Instance<T> |
select(java.lang.annotation.Annotation... bindings)
Restricts the instance given a set of bindings |
|
|
select(java.lang.Class<U> subtype,
java.lang.annotation.Annotation... bindings)
Restricts the instance to a subtype and bindings. |
|
|
select(TypeLiteral<U> subtype,
java.lang.annotation.Annotation... bindings)
Restricts the instance to a subtype and bindings. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public T get()
get
in interface Provider<T>
public Instance<T> select(java.lang.annotation.Annotation... bindings)
select
in interface Instance<T>
public <U extends T> Instance<U> select(java.lang.Class<U> subtype, java.lang.annotation.Annotation... bindings)
select
in interface Instance<T>
public <U extends T> Instance<U> select(TypeLiteral<U> subtype, java.lang.annotation.Annotation... bindings)
select
in interface Instance<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public boolean isAmbiguous()
Instance
isAmbiguous
in interface Instance<T>
public boolean isUnsatisfied()
Instance
isUnsatisfied
in interface Instance<T>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |