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