de.smartics.properties.jboss.extension.resources
Class ExtensionConfigurationService

Package class diagram package ExtensionConfigurationService
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.ExtensionConfigurationService
All Implemented Interfaces:
org.jboss.msc.service.Service<de.smartics.properties.spi.config.config.ExtensionConfiguration>, org.jboss.msc.value.Value<de.smartics.properties.spi.config.config.ExtensionConfiguration>

public class ExtensionConfigurationService
     
     
extends Object
implements org.jboss.msc.service.Service<de.smartics.properties.spi.config.config.ExtensionConfiguration>

A service wrapper around counter instances.


Field Summary
static org.jboss.msc.service.ServiceName SERVICE_NAME
          The name of the counter service collection.
 
Fields inherited from interface org.jboss.msc.service.Service
NULL, NULL_VALUE
 
Constructor Summary
ExtensionConfigurationService(de.smartics.properties.spi.config.config.ExtensionConfiguration configurations)
          Default constructor.
 
Method Summary
 void addConfiguration(de.smartics.properties.spi.config.config.PropertiesConfiguration configuration)
          Adds the given configuration.
 de.smartics.properties.spi.config.config.PropertiesConfiguration getConfiguration(String name)
          Returns the configuration stored with the given name.
 de.smartics.properties.spi.config.config.ExtensionConfiguration getValue()
           
 de.smartics.properties.spi.config.config.PropertiesConfiguration removeConfiguration(String name)
          Removes the configuration with the given name.
 void start(org.jboss.msc.service.StartContext context)
           
 void stop(org.jboss.msc.service.StopContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final org.jboss.msc.service.ServiceName SERVICE_NAME
The name of the counter service collection.

Constructor Detail

ExtensionConfigurationService

public ExtensionConfigurationService(de.smartics.properties.spi.config.config.ExtensionConfiguration configurations)
                              throws NullPointerException
Default constructor.

Parameters:
configuration - the wrapped configurations instance.
Throws:
NullPointerException - if configurations is null.
Method Detail

getConfiguration

@CheckForNull
public de.smartics.properties.spi.config.config.PropertiesConfiguration getConfiguration(String name)
                                                                                  throws NullPointerException,
                                                                                         IllegalArgumentException
Returns the configuration stored with the given name.

Parameters:
name - the name of the configuration to return.
Returns:
the requested configuration or null, if no configuration is registered with this name.
Throws:
NullPointerException - if name is null.
IllegalArgumentException - if name is blank.

addConfiguration

public void addConfiguration(de.smartics.properties.spi.config.config.PropertiesConfiguration configuration)
                      throws NullPointerException
Adds the given configuration.

Parameters:
configuration - the configuration to add.
Throws:
NullPointerException - if configuration is null.

removeConfiguration

@CheckForNull
public de.smartics.properties.spi.config.config.PropertiesConfiguration removeConfiguration(String name)
                                                                                     throws NullPointerException,
                                                                                            IllegalArgumentException
Removes the configuration with the given name.

Parameters:
name - the name of the configuration to remove.
Returns:
the removed configuration, null if no has been stored by this name.
Throws:
NullPointerException - if name is null.
IllegalArgumentException - if name is blank.

getValue

public de.smartics.properties.spi.config.config.ExtensionConfiguration getValue()
                                                                         throws IllegalStateException,
                                                                                IllegalArgumentException
Specified by:
getValue in interface org.jboss.msc.value.Value<de.smartics.properties.spi.config.config.ExtensionConfiguration>
Throws:
IllegalStateException
IllegalArgumentException

start

public void start(org.jboss.msc.service.StartContext context)
           throws org.jboss.msc.service.StartException
Specified by:
start in interface org.jboss.msc.service.Service<de.smartics.properties.spi.config.config.ExtensionConfiguration>
Throws:
org.jboss.msc.service.StartException

stop

public void stop(org.jboss.msc.service.StopContext context)
Specified by:
stop in interface org.jboss.msc.service.Service<de.smartics.properties.spi.config.config.ExtensionConfiguration>


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