public abstract class ComponentProvider extends Object
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.| Constructor and Description |
|---|
ComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> Object |
create(Class<T> c)
Create new instance.
|
abstract boolean |
destroy(Object o)
Destroys the given managed instance.
|
Method |
getInvocableMethod(Method method)
Get the method which should be invoked instead provided one.
|
abstract boolean |
isApplicable(Class<?> c)
Checks whether this component provider is able to provide an instance of given
Class. |
public abstract boolean isApplicable(Class<?> c)
Class.c - Class to be checked.true iff this ComponentProvider is able to create an instance of the given Class.public abstract <T> Object create(Class<T> c)
c - Class to be created.null otherwise.public Method getInvocableMethod(Method method)
method - method from endpoint class.public abstract boolean destroy(Object o)
o - instance to be destroyed.true iff the instance was coupled to this ComponentProvider, false otherwise.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.