de.smartics.properties.spi.core.registry
Class ConfigurationRegistry

Package class diagram package ConfigurationRegistry
java.lang.Object
  extended by de.smartics.properties.spi.core.registry.ConfigurationRegistry
All Implemented Interfaces:
Serializable

@ThreadSafe
public final class ConfigurationRegistry
     
     
extends Object
implements Serializable

Manages configurations for property descriptors. The configurations are backed by META-INF/property/config.xml files. This registry serves as a cache.

See Also:
Serialized Form

Constructor Summary
ConfigurationRegistry()
          Default constructor.
 
Method Summary
 PropertiesContext get(Class<?> declaringType)
          Returns the properties context for the declaring type of a property set.
 PropertiesContext get(PropertyDescriptor descriptor)
          Returns the properties context for the given descriptor.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationRegistry

public ConfigurationRegistry()
Default constructor.

Method Detail

get

@CheckForNull
public PropertiesContext get(PropertyDescriptor descriptor)
                      throws NullPointerException
Returns the properties context for the given descriptor.

Parameters:
descriptor - the descriptor whose properties context is requested.
Returns:
the context for the property provided by the descriptor. May return null if the descriptor is unknown.
Throws:
NullPointerException - if descriptor is null.

get

@CheckForNull
public PropertiesContext get(Class<?> declaringType)
                      throws NullPointerException
Returns the properties context for the declaring type of a property set.

Parameters:
declaringType - the declaring type of a property set.
Returns:
the context for the declared properties. May return null if the declaringType is unknown.
Throws:
NullPointerException - if declaringType is null.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


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