de.smartics.properties.admin.domain.service
Class RemoteConfigurationPropertiesManagementFactory

Package class diagram package RemoteConfigurationPropertiesManagementFactory
java.lang.Object
  extended by de.smartics.properties.admin.domain.service.RemoteConfigurationPropertiesManagementFactory
All Implemented Interfaces:
de.smartics.properties.api.config.app.ConfigurationPropertiesFactory, de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory, Serializable

public final class RemoteConfigurationPropertiesManagementFactory
     
     
extends Object
implements de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory

Provides the URL to the remote repository and otherwise delegates to a passed in factory.

See Also:
Serialized Form

Constructor Summary
RemoteConfigurationPropertiesManagementFactory(de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory delegate, String remoteUrl)
          Default constructor.
 
Method Summary
 void addPropertyProviders(Collection<de.smartics.properties.api.config.domain.PropertyProvider> providers)
           
 void addPropertyProviders(de.smartics.properties.api.config.domain.PropertyProvider... providers)
           
 void addRootLocations(Collection<URL> urls)
           
 void addRootLocations(URL... urls)
           
 String addRootUrls(de.smartics.properties.resource.domain.ArtifactId artifactId)
           
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement create(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
           
 de.smartics.properties.api.config.domain.ConfigurationProperties createDefault()
           
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement createDefaultManagement()
           
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement createManagement(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
           
 de.smartics.properties.resource.domain.ArtifactRef getArtifactRef(String artifactId)
           
 de.smartics.properties.api.config.app.FactoryConfiguration getFactoryConfiguration()
           
 Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> getRegisteredConfigurationKeys()
           
 de.smartics.properties.api.core.domain.PropertyDescriptorRegistry getRegistry()
           
 String getRemoteUrl()
          Returns the URL to the remote repository.
 Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> materialize()
           
 void release()
           
 de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement remove(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteConfigurationPropertiesManagementFactory

public RemoteConfigurationPropertiesManagementFactory(de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory delegate,
                                                      String remoteUrl)
Default constructor.

Parameters:
delegate - the factory to delegate calls to.
remoteUrl - the URL to the remote repository.
Method Detail

getRemoteUrl

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

Returns:
the URL to the remote repository.

create

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement create(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
                                                                                  throws NullPointerException
Specified by:
create in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory
Specified by:
create in interface de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory
Throws:
NullPointerException

getFactoryConfiguration

public de.smartics.properties.api.config.app.FactoryConfiguration getFactoryConfiguration()
Specified by:
getFactoryConfiguration in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

remove

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement remove(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
                                                                                  throws NullPointerException
Specified by:
remove in interface de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory
Throws:
NullPointerException

addRootLocations

public void addRootLocations(Collection<URL> urls)
Specified by:
addRootLocations in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

release

public void release()
Specified by:
release in interface de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory

addRootLocations

public void addRootLocations(URL... urls)
Specified by:
addRootLocations in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

addPropertyProviders

public void addPropertyProviders(Collection<de.smartics.properties.api.config.domain.PropertyProvider> providers)
Specified by:
addPropertyProviders in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

addPropertyProviders

public void addPropertyProviders(de.smartics.properties.api.config.domain.PropertyProvider... providers)
Specified by:
addPropertyProviders in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

createManagement

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement createManagement(de.smartics.properties.api.config.domain.key.ConfigurationKey<?> key)
                                                                                            throws NullPointerException,
                                                                                                   de.smartics.properties.api.config.domain.ConfigurationException
Specified by:
createManagement in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory
Throws:
NullPointerException
de.smartics.properties.api.config.domain.ConfigurationException

createDefault

public de.smartics.properties.api.config.domain.ConfigurationProperties createDefault()
                                                                               throws de.smartics.properties.api.config.domain.ConfigurationException
Specified by:
createDefault in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory
Throws:
de.smartics.properties.api.config.domain.ConfigurationException

createDefaultManagement

public de.smartics.properties.api.config.domain.ConfigurationPropertiesManagement createDefaultManagement()
                                                                                                   throws de.smartics.properties.api.config.domain.ConfigurationException
Specified by:
createDefaultManagement in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory
Throws:
de.smartics.properties.api.config.domain.ConfigurationException

getRegisteredConfigurationKeys

public Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> getRegisteredConfigurationKeys()
Specified by:
getRegisteredConfigurationKeys in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

getRegistry

public de.smartics.properties.api.core.domain.PropertyDescriptorRegistry getRegistry()
Specified by:
getRegistry in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

materialize

public Collection<de.smartics.properties.api.config.domain.key.ConfigurationKey<?>> materialize()
Specified by:
materialize in interface de.smartics.properties.api.config.app.ConfigurationPropertiesFactory

addRootUrls

public String addRootUrls(de.smartics.properties.resource.domain.ArtifactId artifactId)
                   throws de.smartics.util.lang.NullArgumentException,
                          de.smartics.properties.resource.repository.RepositoryException,
                          de.smartics.properties.api.config.domain.CompoundConfigurationException
Specified by:
addRootUrls in interface de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory
Throws:
de.smartics.util.lang.NullArgumentException
de.smartics.properties.resource.repository.RepositoryException
de.smartics.properties.api.config.domain.CompoundConfigurationException

getArtifactRef

public de.smartics.properties.resource.domain.ArtifactRef getArtifactRef(String artifactId)
                                                                  throws NullPointerException
Specified by:
getArtifactRef in interface de.smartics.properties.spi.config.support.ConfigurationPropertiesManagementFactory
Throws:
NullPointerException


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