org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool
Class SandBoxEntityManagerPoolFactoryBean

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.pool.SandBoxEntityManagerPoolFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManager>

public class SandBoxEntityManagerPoolFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManager>


Field Summary
protected  KeyedEntityManagerPool sandboxPool
           
 
Constructor Summary
SandBoxEntityManagerPoolFactoryBean()
           
 
Method Summary
 javax.persistence.EntityManager getObject()
           
 java.lang.Class<?> getObjectType()
           
 KeyedEntityManagerPool getSandboxPool()
           
 boolean isSingleton()
           
 void returnObject(java.lang.Object obj)
           
 void setSandboxPool(KeyedEntityManagerPool sandboxPool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sandboxPool

protected KeyedEntityManagerPool sandboxPool
Constructor Detail

SandBoxEntityManagerPoolFactoryBean

public SandBoxEntityManagerPoolFactoryBean()
Method Detail

getObject

public javax.persistence.EntityManager getObject()
                                          throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManager>
Throws:
java.lang.Exception

returnObject

public void returnObject(java.lang.Object obj)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManager>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<javax.persistence.EntityManager>

getSandboxPool

public KeyedEntityManagerPool getSandboxPool()

setSandboxPool

public void setSandboxPool(KeyedEntityManagerPool sandboxPool)


Copyright © 2011. All Rights Reserved.