org.compass.spring.device.jpa
Class CompassEmbeddedJpaFactoryBean

java.lang.Object
  extended by org.compass.spring.device.jpa.CompassEmbeddedJpaFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class CompassEmbeddedJpaFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

A Spring factory bean that returns a Compass instance that is embedded within the provided JPA EntityManagerFactory.

Author:
kimchy
See Also:
GenericJpaHelper

Constructor Summary
CompassEmbeddedJpaFactoryBean(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassEmbeddedJpaFactoryBean

public CompassEmbeddedJpaFactoryBean(javax.persistence.EntityManagerFactory entityManagerFactory)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean


Copyright (c) 2004-2009 The Compass Project.