|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.ConfigurationServiceImpl
@Transactional @Service(value="configurationService") public class ConfigurationServiceImpl
A ConfigurationServiceImpl is a transactional Spring powered service implementation to manage preferences. This implementation can be autowired with the name "configurationService".
Field Summary | |
---|---|
static String |
COMPONENT_NAME
Springs service name. |
Constructor Summary | |
---|---|
ConfigurationServiceImpl()
|
Method Summary | ||
---|---|---|
List<AbstractPreference> |
findAll()
Find and return all preferences. |
|
|
findByType(Class<T> clazz)
Find and return all preferences in the scope of the application. |
|
void |
onApplicationEvent(MergePropertiesEvent event)
When an event arrives all new preferences received from the file provider are persisted. |
|
void |
remove(AbstractPreference preference)
Remove a AbstractPreference . |
|
AbstractPreference |
save(AbstractPreference preference)
Save the given AbstractPreference or persist it when it is a
transient instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_NAME
Constructor Detail |
---|
public ConfigurationServiceImpl()
Method Detail |
---|
public void onApplicationEvent(MergePropertiesEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<MergePropertiesEvent>
ApplicationListener.onApplicationEvent(org.springframework.context.ApplicationEvent)
public List<AbstractPreference> findAll()
findAll
in interface ConfigurationService
EntityServiceImpl.findAll()
public <T extends AbstractPreference> List<T> findByType(Class<T> clazz)
findByType
in interface ConfigurationService
T
- Any subtype of AbstractPreference
clazz
- The class of preference to search for
ConfigurationService.findByType(java.lang.Class)
public AbstractPreference save(AbstractPreference preference)
AbstractPreference
or persist it when it is a
transient instance.
It is not allowed to call the implementation with a null
argument.
save
in interface ConfigurationService
preference
- AbstractPreference
entity to save
AbstractPreference
entity instance
IllegalArgumentException
- when preference
is null
EntityServiceImpl.save(org.openwms.core.domain.AbstractEntity)
public void remove(AbstractPreference preference)
AbstractPreference
.
remove
in interface ConfigurationService
preference
- The AbstractPreference
to remove
IllegalArgumentException
- when preference
is null
ConfigurationService.remove(org.openwms.core.domain.system.AbstractPreference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |