|
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.spring.ObjectGridSpringFactory
public final class ObjectGridSpringFactory
This class serves as a factory to construct instances of the various Spring specific APIs.
Field Summary | |
---|---|
static String |
SCOPE_SHARD
Scope identifier for shard scope: "shard". |
Constructor Summary | |
---|---|
ObjectGridSpringFactory()
|
Method Summary | |
---|---|
static BeanFactory |
getBeanFactoryForObjectGrid(String objectGridName)
This returns the currently registered external bean factory for a named object grid. |
static Object |
getBeanInShardScope(ObjectGrid shard,
String beanName)
This returns an instance of the named Spring bean with the current shard scope using the specified ObjectGrid instance. |
static SpringLocalTxManager |
getLocalPlatformTransactionManager()
This returns an ObjectGrid PlatformLocalTransactionManager. |
static void |
registerSpringBeanFactoryAdapter(String objectGridName,
Object springBeanFactory)
This returns an adapter for a Spring based bean factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SCOPE_SHARD
getBeanInShardScope(ObjectGrid, String)
,
Constant Field ValuesConstructor Detail |
---|
public ObjectGridSpringFactory()
Method Detail |
---|
public static SpringLocalTxManager getLocalPlatformTransactionManager()
public static void registerSpringBeanFactoryAdapter(String objectGridName, Object springBeanFactory) throws ClassCastException
objectGridName
- the name of the ObjectGridspringBeanFactory
- A Spring BeanFactory instance.
ClassCastException
- thrown when the Object type is not a BeanFactory instance.public static BeanFactory getBeanFactoryForObjectGrid(String objectGridName)
objectGridName
- The name of the ObjectGrid
public static Object getBeanInShardScope(ObjectGrid shard, String beanName)
shard
- The ObjectGrid instance to use to scope Spring beans using "shard" as scope.beanName
- The bean to return
SCOPE_SHARD
|
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 |