Package org.apache.cxf.jaxrs.blueprint
Class BlueprintResourceFactory
- java.lang.Object
-
- org.apache.cxf.jaxrs.blueprint.BlueprintResourceFactory
-
- All Implemented Interfaces:
ResourceProvider
public class BlueprintResourceFactory extends Object implements ResourceProvider
-
-
Constructor Summary
Constructors Constructor Description BlueprintResourceFactory()BlueprintResourceFactory(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInstance(Message m)Returns the resource instance which will handle the current requestClass<?>getResourceClass()Returns the Class of the resourcebooleanisSingleton()Indicates if the managed resource is a singletonvoidreleaseInstance(Message m, Object o)Releases the resource instance if neededvoidsetBeanId(String serviceBeanId)voidsetBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
-
-
-
Constructor Detail
-
BlueprintResourceFactory
public BlueprintResourceFactory()
-
BlueprintResourceFactory
public BlueprintResourceFactory(String name)
-
-
Method Detail
-
getInstance
public Object getInstance(Message m)
Description copied from interface:ResourceProviderReturns the resource instance which will handle the current request- Specified by:
getInstancein interfaceResourceProvider- Parameters:
m- the current request message- Returns:
- resource instance
-
isSingleton
public boolean isSingleton()
Description copied from interface:ResourceProviderIndicates if the managed resource is a singleton- Specified by:
isSingletonin interfaceResourceProvider- Returns:
-
releaseInstance
public void releaseInstance(Message m, Object o)
Description copied from interface:ResourceProviderReleases the resource instance if needed- Specified by:
releaseInstancein interfaceResourceProvider- Parameters:
m- the current request messageo- resource instance
-
setBeanId
public void setBeanId(String serviceBeanId)
-
getResourceClass
public Class<?> getResourceClass()
Description copied from interface:ResourceProviderReturns the Class of the resource- Specified by:
getResourceClassin interfaceResourceProvider- Returns:
-
setBlueprintContainer
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
-
-