Apache CXF API

org.apache.cxf.jaxrs.blueprint
Class BlueprintResourceFactory

java.lang.Object
  extended by org.apache.cxf.jaxrs.blueprint.BlueprintResourceFactory
All Implemented Interfaces:
ResourceProvider

public class BlueprintResourceFactory
extends Object
implements ResourceProvider


Constructor Summary
BlueprintResourceFactory()
           
BlueprintResourceFactory(String name)
           
 
Method Summary
 Object getInstance(Message m)
          Returns the resource instance which will handle the current request
 Class<?> getResourceClass()
          Returns the Class of the resource
 boolean isSingleton()
          Indicates if the managed resource is a singleton
 void releaseInstance(Message m, Object o)
          Releases the resource instance if needed
 void setBeanId(String serviceBeanId)
           
 void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintResourceFactory

public BlueprintResourceFactory()

BlueprintResourceFactory

public BlueprintResourceFactory(String name)
Method Detail

getInstance

public Object getInstance(Message m)
Description copied from interface: ResourceProvider
Returns the resource instance which will handle the current request

Specified by:
getInstance in interface ResourceProvider
Parameters:
m - the current request message
Returns:
resource instance

isSingleton

public boolean isSingleton()
Description copied from interface: ResourceProvider
Indicates if the managed resource is a singleton

Specified by:
isSingleton in interface ResourceProvider
Returns:

releaseInstance

public void releaseInstance(Message m,
                            Object o)
Description copied from interface: ResourceProvider
Releases the resource instance if needed

Specified by:
releaseInstance in interface ResourceProvider
Parameters:
m - the current request message
o - resource instance

setBeanId

public void setBeanId(String serviceBeanId)

getResourceClass

public Class<?> getResourceClass()
Description copied from interface: ResourceProvider
Returns the Class of the resource

Specified by:
getResourceClass in interface ResourceProvider
Returns:

setBlueprintContainer

public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)

Apache CXF API

Apache CXF