public final class Client.Configuration extends java.lang.Object
Constructor and Description |
---|
Configuration(java.net.URL url)
Create a new Configuration instance to manage the supplied
configuration data
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate the current configuration.
|
void |
deactivate()
Deactivate the current configuration.
|
java.lang.String[] |
display()
Display the current Configuration.
|
java.lang.String[] |
export()
Export the current configuration.
|
java.lang.String |
getName()
Get the name of the currently-loaded configuration.
|
ConfigurationState |
getState()
Get the state of the currently-loaded configuration.
|
java.lang.String |
getType()
Get the type of the currently-loaded configuration.
|
java.lang.String |
getVersion()
Get the version of the currently-loaded configuration.
|
void |
load()
Load configuration data.
|
void |
remove()
Remove the current configuration.
|
public Configuration(java.net.URL url)
url
- the URL of the configuration data.public void load() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the URL could not be opened, or the
configuration failed audit.Transaction.InvalidTransactionState
- called from a transactional context.public void activate() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance or the configuration is already active.Transaction.InvalidTransactionState
- called from a transactional context.public void deactivate() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance or the configuration is not active.Transaction.InvalidTransactionState
- called from a transactional context.public void remove() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance or the configuration has already been
removed.Transaction.InvalidTransactionState
- called from a transactional context.public java.lang.String[] display() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance.Transaction.InvalidTransactionState
- called from a transactional context.public java.lang.String[] export() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance.Transaction.InvalidTransactionState
- called from a transactional context.public java.lang.String getType() throws CommandFailed
CommandFailed
- the configuration was not loaded by this
Configuration instance.public java.lang.String getName() throws CommandFailed
CommandFailed
- the configuration was not loaded by this
Configuration instance.public java.lang.String getVersion() throws CommandFailed
CommandFailed
- the configuration was not loaded by this
Configuration instance.public ConfigurationState getState() throws CommandFailed, Transaction.InvalidTransactionState
CommandFailed
- the configuration was not loaded by this
Configuration instance.Transaction.InvalidTransactionState
- called from a transactional context.