T
- Configuration typepublic static class Configuration.ConfigurationMixin<T> extends Object implements Configuration<T>
This is effectively an internal class in Polygene and should never be used directly by user code.
Configuration.ConfigurationMixin<T>
Constructor and Description |
---|
ConfigurationMixin() |
Modifier and Type | Method and Description |
---|---|
<V> V |
findConfigurationInstanceFor(ServiceDescriptor serviceModel,
Identity serviceIdentity,
UnitOfWork uow) |
T |
get()
Retrieves the user configuration instance managed by this Configuration.
|
void |
refresh()
Updates the values of the managed user ConfigurationComposite instance from the underlying
org.apache.polygene.spi.entitystore.EntityStore . |
void |
save()
Persists the modified values in the user configuration instance to the underlying store.
|
public T get()
Configuration
Even if the user configuration is initialized from properties file, the consistency rules of Polygene 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.
get
in interface Configuration<T>
public void refresh()
Configuration
org.apache.polygene.spi.entitystore.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 <V> V findConfigurationInstanceFor(ServiceDescriptor serviceModel, Identity serviceIdentity, UnitOfWork uow) throws InstantiationException
InstantiationException