Method isApplicable(Class) is called first to check whether the provider is able to provide the given
Class. Method create(Class) is called to get the instance.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract < type of the created object. T> Object | |
| public abstract boolean | |
| public Method | Returns: method which should be invoked.method from endpoint class. method)Get the method which should be invoked instead provided one. |
| public abstract boolean | isApplicable(Class<?>
Class to be checked.Checks whether this component provider is able to provide an instance of given |
| ComponentProvider | back to summary |
|---|---|
| public ComponentProvider() | |
| create | back to summary |
|---|---|
| public abstract <T> Object create(Class<T> c) Create new instance. | |
| destroy | back to summary |
|---|---|
| public abstract boolean destroy(Object o) Destroys the given managed instance.
| |
| getInvocableMethod | back to summary |
|---|---|
| public Method getInvocableMethod(Method method) Get the method which should be invoked instead provided one. Useful mainly for EJB container support, where methods from endpoint class cannot be invoked directly - Tyrus needs to use method declared on remote interface. Default implementation returns method provided as parameter. | |
| isApplicable | back to summary |
|---|---|
| public abstract boolean isApplicable(Class<?> c) Checks whether this component provider is able to provide an instance of given
| |