org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.annotation
Class BroadleafPersistenceAnnotationBeanPostProcessor

java.lang.Object
  extended by org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor
      extended by org.broadleafcommerce.openadmin.server.service.persistence.entitymanager.annotation.BroadleafPersistenceAnnotationBeanPostProcessor
All Implemented Interfaces:
java.io.Serializable, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class BroadleafPersistenceAnnotationBeanPostProcessor
extends org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor

Modification of behavior defined in PersistenceAnnotationBeanPostProcessor to support the Broadleaf concept of sand boxes. Change sets are entity alterations created through the Broadleaf admin application that have not been finalized in the standard schema. This provides administrators with the core functionality to preview their changes without impacting the site as it's seen by regular users. This also provides the basis for approval workflows and scheduling of change set deployments. This class keeps track of two persistence units instead of one: the regular persistence unit and the sand box persistence unit. Based on PersistenceAnnotationBeanPostProcessor by Rod Johnson and Juergen Hoeller

Author:
jfischer
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
BroadleafPersistenceAnnotationBeanPostProcessor()
           
 
Method Summary
 org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs, java.beans.PropertyDescriptor[] pds, java.lang.Object bean, java.lang.String beanName)
           
 
Methods inherited from class org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor
findDefaultEntityManagerFactory, findEntityManagerFactory, findNamedEntityManagerFactory, getOrder, getPersistenceContext, getPersistenceUnit, lookup, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeDestruction, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessMergedBeanDefinition, setBeanFactory, setDefaultPersistenceUnitName, setExtendedPersistenceContexts, setJndiEnvironment, setJndiTemplate, setOrder, setPersistenceContexts, setPersistenceUnits, setResourceRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadleafPersistenceAnnotationBeanPostProcessor

public BroadleafPersistenceAnnotationBeanPostProcessor()
Method Detail

postProcessPropertyValues

public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
                                                                          java.beans.PropertyDescriptor[] pds,
                                                                          java.lang.Object bean,
                                                                          java.lang.String beanName)
                                                                   throws org.springframework.beans.BeansException
Specified by:
postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
Overrides:
postProcessPropertyValues in class org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright © 2011. All Rights Reserved.