org.broadleafcommerce.common.persistence
Class EntityConfiguration

java.lang.Object
  extended by org.broadleafcommerce.common.persistence.EntityConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component(value="blEntityConfiguration")
public class EntityConfiguration
extends Object
implements org.springframework.context.ApplicationContextAware


Field Summary
protected  Set<String> mergedEntityContexts
           
 
Constructor Summary
EntityConfiguration()
           
 
Method Summary
 void configureMergedItems()
           
 Object createEntityInstance(String beanId)
           
<T> T
createEntityInstance(String beanId, Class<T> resultClass)
           
 String[] getEntityBeanNames()
           
 org.springframework.core.io.Resource[] getEntityContexts()
           
 Class<?> lookupEntityClass(String beanId)
           
<T> Class<T>
lookupEntityClass(String beanId, Class<T> resultClass)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setEntityContexts(org.springframework.core.io.Resource[] entityContexts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mergedEntityContexts

protected Set<String> mergedEntityContexts
Constructor Detail

EntityConfiguration

public EntityConfiguration()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

configureMergedItems

@PostConstruct
public void configureMergedItems()

lookupEntityClass

public Class<?> lookupEntityClass(String beanId)

getEntityBeanNames

public String[] getEntityBeanNames()

lookupEntityClass

public <T> Class<T> lookupEntityClass(String beanId,
                                      Class<T> resultClass)

createEntityInstance

public Object createEntityInstance(String beanId)

createEntityInstance

public <T> T createEntityInstance(String beanId,
                                  Class<T> resultClass)

getEntityContexts

public org.springframework.core.io.Resource[] getEntityContexts()

setEntityContexts

public void setEntityContexts(org.springframework.core.io.Resource[] entityContexts)


Copyright © 2013. All Rights Reserved.