public class RestfulComponentAdapter extends Object implements org.picocontainer.ComponentAdapter
ComponentAdapter for providing instance of JAX-RS resource of provider.| Constructor and Description |
|---|
RestfulComponentAdapter(Object componentKey,
Object classOrInstance)
Create new RestfulComponentAdapter for specified componentKey and class or instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.picocontainer.PicoVisitor visitor) |
Class |
getComponentImplementation() |
Object |
getComponentInstance(org.picocontainer.PicoContainer container) |
Object |
getComponentKey() |
ObjectFactory<ObjectModel> |
getFactory() |
ObjectModel |
getObjectModel() |
static boolean |
isRestfulComponent(Object classOrInstance) |
String |
toString() |
void |
verify(org.picocontainer.PicoContainer container) |
public RestfulComponentAdapter(Object componentKey, Object classOrInstance)
componentKey - the key of componentclassOrInstance - the class or instance of JAX-RS resource or providerNullPointerException - if componentKey or classOrInstance is nullIllegalArgumentException - if classOrInstance has neither Path, Provider nor
Filter.public static boolean isRestfulComponent(Object classOrInstance)
public ObjectModel getObjectModel()
public ObjectFactory<ObjectModel> getFactory()
public Object getComponentInstance(org.picocontainer.PicoContainer container) throws org.picocontainer.PicoInitializationException, org.picocontainer.PicoIntrospectionException
getComponentInstance in interface org.picocontainer.ComponentAdapterorg.picocontainer.PicoInitializationExceptionorg.picocontainer.PicoIntrospectionExceptionpublic void verify(org.picocontainer.PicoContainer container)
throws org.picocontainer.PicoIntrospectionException
verify in interface org.picocontainer.ComponentAdapterorg.picocontainer.PicoIntrospectionExceptionpublic void accept(org.picocontainer.PicoVisitor visitor)
accept in interface org.picocontainer.ComponentAdapterpublic Object getComponentKey()
getComponentKey in interface org.picocontainer.ComponentAdapterpublic Class getComponentImplementation()
getComponentImplementation in interface org.picocontainer.ComponentAdapterCopyright © 2015. All rights reserved.