de.smartics.properties.admin.domain.model
Class ManagedApplication

Package class diagram package ManagedApplication
java.lang.Object
  extended by de.smartics.properties.admin.domain.model.ManagedApplication
All Implemented Interfaces:
Serializable

public class ManagedApplication
     
     
extends Object
implements Serializable

The application, managed by this REST service implementation.

See Also:
Serialized Form

Constructor Summary
ManagedApplication(de.smartics.properties.resource.domain.ArtifactId applicationId, de.smartics.properties.impl.config.ds.DataSourceConfiguration dataSourceConfig, RemoteConfigurationPropertiesManagementFactory factory)
          Default constructor.
 
Method Summary
 void clean()
          Cleans the definitions from the factory.
static ManagedApplication getApplication()
          Provides access to the managed application.
 de.smartics.properties.resource.domain.ArtifactId getApplicationId()
          Returns the identifier of the application managed.
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement getConfiguration(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
          Provides access to configurations.
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement getConfiguration(String keyString)
          Provides access to configurations.
 Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> getConfigurationKeys()
          Returns the collection of configuration keys.
 de.smartics.properties.impl.config.ds.DataSourceConfiguration getDataSourceConfig()
          Returns the data source that contains the property definitions.
 de.smartics.properties.api.core.domain.PropertyDescriptorRegistry getDescriptorRegistry()
          Returns the registry of known descriptors.
 String getRemoteRepositoryUrl()
          Returns the URL to the remote repository.
 de.smartics.properties.api.core.security.PropertyValueSecurity getSecurity()
          Returns the security component to encrypt and decrypt values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedApplication

public ManagedApplication(de.smartics.properties.resource.domain.ArtifactId applicationId,
                          de.smartics.properties.impl.config.ds.DataSourceConfiguration dataSourceConfig,
                          RemoteConfigurationPropertiesManagementFactory factory)
Default constructor.

Parameters:
applicationId - the identifier of the application managed.
dataSourceConfig - the data source that contains the property definitions.
factory - the factory to manage configurations for the application.
Method Detail

getApplicationId

public de.smartics.properties.resource.domain.ArtifactId getApplicationId()
Returns the identifier of the application managed.

Returns:
the identifier of the application managed.

getDataSourceConfig

@CheckForNull
public de.smartics.properties.impl.config.ds.DataSourceConfiguration getDataSourceConfig()
Returns the data source that contains the property definitions.

Returns:
the data source that contains the property definitions.

getRemoteRepositoryUrl

public String getRemoteRepositoryUrl()
Returns the URL to the remote repository.

Returns:
the URL to the remote repository.

getSecurity

public de.smartics.properties.api.core.security.PropertyValueSecurity getSecurity()
Returns the security component to encrypt and decrypt values.

Returns:
the security component to encrypt and decrypt values.

getDescriptorRegistry

public de.smartics.properties.api.core.domain.PropertyDescriptorRegistry getDescriptorRegistry()
Returns the registry of known descriptors.

Returns:
the registry of known descriptors.

getApplication

public static ManagedApplication getApplication()
                                         throws CannotInitializeManagedApplicationException
Provides access to the managed application.

Returns:
the managed application.
Throws:
CannotInitializeManagedApplicationException - if the application was not and cannot be initialized.

getConfiguration

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement getConfiguration(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
Provides access to configurations.

Parameters:
key - the key to the requested configuration.
Returns:
the requested configuration.

getConfiguration

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement getConfiguration(String keyString)
Provides access to configurations.

Parameters:
keyString - the string representation of the key to the requested configuration.
Returns:
the requested configuration.

getConfigurationKeys

public Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> getConfigurationKeys()
Returns the collection of configuration keys.

Returns:
the collection of configuration keys.

clean

public void clean()
Cleans the definitions from the factory.



Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.