IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.osgi
Class BluePrintServiceFactory

java.lang.Object
  extended by com.ibm.websphere.objectgrid.plugins.osgi.BluePrintServiceFactory
All Implemented Interfaces:
PluginServiceFactory

public class BluePrintServiceFactory
extends Object
implements PluginServiceFactory

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>

 
 

Since:
7.1.1

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

BluePrintServiceFactory

public BluePrintServiceFactory()
Default Constructor

Method Detail

setBlueprintContainer

public void setBlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer container)
Set the BlueprintContainer instance

Parameters:
container - the BlueprintContainer instance

setBeanId

public void setBeanId(String id)
Set the Blueprint bean ID that declares the plugin class.

Parameters:
id - the plugin's bean ID

getService

public Object getService()
Specified by:
getService in interface PluginServiceFactory
Returns:
a plug-in service instance.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.