|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.plugins.osgi.BluePrintServiceFactory
public class BluePrintServiceFactory
A built-in BluePrint implementation of the PluginServiceFactory
.
Customer can use this built-in BluePrintServiceFactory
to configure a
plug-in bean factory.
Here is a configuration sample:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<!-- Configure the beans -->
<!-- The default scope is singleton -->
<bean id="myProtoBufSerializerBean" class="com.ibm.websphere.samples.xs.serializer.proto.ProtoMapSerializer" scope="prototype">
<property name="keyType" value="com.ibm.websphere.samples.xs.serializer.proto.DataObjects2$OrderKey" />
<property name="valueType" value="com.ibm.websphere.samples.xs.serializer.proto.DataObjects2$Order" />
</bean>
<!-- Configure the factory beans to expose the beans -->
<bean id="myProtoBufSerializer" class="com.ibm.websphere.objectgrid.plugins.osgi.BluePrintServiceFactory">
<property name="blueprintContainer" ref="blueprintContainer"/>
<property name="pluginId" value="myProtoBufSerializerBean"/>
</bean>
<!-- Configure the factory services -->
<service ref="myProtoBufSerializer" interface="com.ibm.websphere.objectgrid.plugins.osgi.PluginServiceFactory"/>
</blueprint>
Constructor Summary | |
---|---|
BluePrintServiceFactory()
Default Constructor |
Method Summary | |
---|---|
Object |
getService()
|
void |
setBeanId(String id)
Set the Blueprint bean ID that declares the plugin class. |
void |
setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer container)
Set the BlueprintContainer instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluePrintServiceFactory()
Method Detail |
---|
public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer container)
container
- the BlueprintContainer instancepublic void setBeanId(String id)
id
- the plugin's bean IDpublic Object getService()
getService
in interface PluginServiceFactory
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |