|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Provider<T>
Extends the Factory contract, offering the ability to
Descriptor describing the
attributes of the registered component/service, and
ManagedComponentProvider| Method Summary | |
|---|---|
T |
get()
The system calls this method to obtain a reference to the component/service. |
java.util.Collection<java.lang.annotation.Annotation> |
getAnnotations()
The collection of annotations for this type. |
Descriptor |
getDescriptor()
The Descriptor fully characterizes the attributes
of this Provider. |
java.lang.Class<? extends T> |
type()
The class type of the implementation. |
| Method Detail |
|---|
T get() throws ComponentException
ComponentException - If the factory failed to get/create an instance
and would like to propagate the error to the caller.Descriptor getDescriptor()
Descriptor fully characterizes the attributes
of this Provider.
java.lang.Class<? extends T> type()
Factory actually
produces.
Note that there is some cost to this call during the first
invocation since it needs to perform classloading. Care
should therefore be exercised accordingly.
java.util.Collection<java.lang.annotation.Annotation> getAnnotations()
type().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||