public class PersisterService extends Object
| Constructor and Description |
|---|
PersisterService() |
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,ModelObjectPersister> |
getPersisterIdToPersisterMap() |
List<ModelObjectPersister> |
getPersisters() |
HashMap<String,ModelObjectPersister> |
getTypeToPersisterMap() |
WebFrameworkConfigElement |
getWebFrameworkConfig()
Returns the
WebFrameworkConfigElement that was supplied to the class
upon instantiation. |
void |
init()
This method is configured in the default Spring Surf application context to execute when the
PersisterService is instantiated. |
void |
setAutowireService(AutowireService autowireService) |
void |
setPersisters(List<ModelObjectPersister> persisters) |
void |
setWebFrameworkConfig(WebFrameworkConfigElement webFrameworkConfig)
This method will be invoked by the Spring framework if this class has been correctly
configured as a bean.
|
public HashMap<String,ModelObjectPersister> getTypeToPersisterMap()
ModelObjectPersister instance that has been configured to
create and save that type.public HashMap<String,ModelObjectPersister> getPersisterIdToPersisterMap()
ModelObjectPersister instance.public void init()
throws Exception
This method is configured in the default Spring Surf application context to execute when the
PersisterService is instantiated. The initialisation consists of 4 parts:
The maps are created for the convenience of consumers of the PersisterService.
The list of persisters initialised will be those defined in the application context as the
persisters property, along with any additional persisters that are defined by any
MultiObjectPersisters found in that list. The AutowireService.configureRuntime
method is also run against any MultiObjectPersisters found to ensure that they
are updated to contain the correct persisters for the configured runtime.
Exceptionpublic void setAutowireService(AutowireService autowireService)
public List<ModelObjectPersister> getPersisters()
public void setPersisters(List<ModelObjectPersister> persisters)
public void setWebFrameworkConfig(WebFrameworkConfigElement webFrameworkConfig)
This method will be invoked by the Spring framework if this class has been correctly configured as a bean.
webFrameworkConfig - WebFrameworkConfigElementpublic WebFrameworkConfigElement getWebFrameworkConfig()
Returns the WebFrameworkConfigElement that was supplied to the class
upon instantiation.
WebFrameworkConfigElement instance.Copyright © 2005–2016 Alfresco Software. All rights reserved.