|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.config.PimentoConfig
public class PimentoConfig
The core configuration class for Pimento. Usually an instance
of this class will be created at application startup. When configured
with Spring this class acts as a Spring BeanPostProcessor,
that detects all classes annotated with @PimentoInterceptor,
and also acts as a Cinnamon ConfigurationProcessor, that
registers all internal ClassMappings needed by Pimento.
| Constructor Summary | |
|---|---|
PimentoConfig()
Creates a new instance. |
|
| Method Summary | |
|---|---|
CinnamonConfig |
getCinnamonConfig()
Returns the Cinnamon configuration that this Pimento configuration uses internally. |
JpaPersistenceAdapter |
getJpaPersistenceAdapter()
The JpaPersistenceAdapter instance for this configuration. |
Metamodel |
getMetamodel()
Returns the entity metamodel for this configuration. |
void |
init(Map<String,String> initMap,
Map<String,Object> applicationMap)
Initializes the ConfigurationProcessor. |
boolean |
isExecuteUpdatePermitted()
Checks whether the Query.executeUpdate operation is allowed for clients. |
void |
postProcess(CinnamonConfig config)
Method called after the usual configuration logic (XML file parsing, Spring context analyzing) was applied to the given CinnamonConfig instance. |
Object |
postProcessAfterInitialization(Object bean,
String beanName)
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
|
void |
preProcess(CinnamonConfig config)
Method called before the usual configuration logic (XML file parsing, Spring context analyzing) will be applied to the given CinnamonConfig instance. |
void |
setExecuteUpdatePermitted(boolean permitted)
Sets whether the Query.executeUpdate operation is allowed for clients. |
void |
setPersistenceAdapters(Set<PersistenceAdapter> adapters)
Sets the persistence adapters to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PimentoConfig()
| Method Detail |
|---|
public CinnamonConfig getCinnamonConfig()
public void setPersistenceAdapters(Set<PersistenceAdapter> adapters)
adapters - the persistence adapters to usepublic JpaPersistenceAdapter getJpaPersistenceAdapter()
public void setExecuteUpdatePermitted(boolean permitted)
Query.executeUpdate operation is allowed for clients.
Since it is very dangerous to expose this method to public clients it is disabled by default.
You should only enable it for testing purposes or internal applications.
permitted - whether the executeUpdate operation is permitted for clientspublic boolean isExecuteUpdatePermitted()
Query.executeUpdate operation is allowed for clients.
Since it is very dangerous to expose this method to public clients it is disabled by default.
You should only enable it for testing purposes or internal applications.
public void init(Map<String,String> initMap,
Map<String,Object> applicationMap)
ConfigurationProcessor
init in interface ConfigurationProcessorinitMap - the initialisation parameters (taken from ServletConfig in a web application)applicationMap - the application attributes (taken from ServletContext in a web application)public void preProcess(CinnamonConfig config)
ConfigurationProcessor
preProcess in interface ConfigurationProcessorconfig - the CinnamonConfig instance under constructionpublic void postProcess(CinnamonConfig config)
ConfigurationProcessor
postProcess in interface ConfigurationProcessorconfig - the CinnamonConfig instance under constructionpublic Metamodel getMetamodel()
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws BeansException
postProcessBeforeInitialization in interface BeanPostProcessorBeansException
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorBeansException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||