public class BlueprintResourceFactory extends Object implements ResourceProvider
Constructor and Description |
---|
BlueprintResourceFactory() |
BlueprintResourceFactory(String name) |
Modifier and Type | Method and Description |
---|---|
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) |
public BlueprintResourceFactory()
public BlueprintResourceFactory(String name)
public Object getInstance(Message m)
ResourceProvider
getInstance
in interface ResourceProvider
m
- the current request messagepublic boolean isSingleton()
ResourceProvider
isSingleton
in interface ResourceProvider
public void releaseInstance(Message m, Object o)
ResourceProvider
releaseInstance
in interface ResourceProvider
m
- the current request messageo
- resource instancepublic void setBeanId(String serviceBeanId)
public Class<?> getResourceClass()
ResourceProvider
getResourceClass
in interface ResourceProvider
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
Apache CXF