|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.api.configuration.Configuration.ConfigurationMixin<T>
T
- public static class Configuration.ConfigurationMixin<T>
Implementation of Configuration.
This is effectively an internal class in Qi4j and should never be used directly by user code.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.api.configuration.Configuration |
---|
Configuration.ConfigurationMixin<T> |
Constructor Summary | |
---|---|
Configuration.ConfigurationMixin()
|
Method Summary | |
---|---|
void |
activate()
This is invoked on the service when the instance is being activated |
T |
configuration()
Retrieves the user configuration instance managed by this Configuration. |
void |
passivate()
This is invoked on the service when the instance is being passivated |
void |
refresh()
Updates the values of the managed user ConfigurationComposite instance from the underlying EntityStore . |
void |
save()
Persists the modified values in the user configuration instance to the underlying store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration.ConfigurationMixin()
Method Detail |
---|
public T configuration()
Configuration
Even if the user configuration is initialized from properties file, the consistency rules of Qi4j composites still applies. If the the properties file is missing a value, then the initialization will fail with a RuntimeException. If Constraints has been defined, those will need to be satisfied as well. The user configuration instance returned will fulfill the constraints and consistency normal to all composites, and can therefor safely be used with additional checks.
configuration
in interface Configuration<T>
public void refresh()
Configuration
EntityStore
. Any modified values in the current user configuration that
has not been saved, via Configuration.save()
method, will be lost.
refresh
in interface Configuration<T>
public void save()
Configuration
save
in interface Configuration<T>
public void activate() throws Exception
Activatable
activate
in interface Activatable
Exception
- if service could not be activatedpublic void passivate() throws Exception
Activatable
passivate
in interface Activatable
Exception
- if the service could not be passivated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |