de.smartics.properties.spi.core.context
Class PropertyContextProxy

Package class diagram package PropertyContextProxy
java.lang.Object
  extended by de.smartics.properties.spi.core.context.PropertyContextProxy
All Implemented Interfaces:
PropertyContextProvider, Serializable

public final class PropertyContextProxy
     
     
extends Object
implements PropertyContextProvider

A proxy to provide property context instances.

See Also:
Serialized Form

Constructor Summary
PropertyContextProxy(PropertiesContext context)
          Default constructor.
 
Method Summary
 PropertyContext getPropertyContext(PropertyDescriptor propertyDescriptor)
          Creates a new property context for the given propertyDescriptor.
 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

PropertyContextProxy

public PropertyContextProxy(PropertiesContext context)
Default constructor.

Parameters:
context - the properties context to fetch information from the META-INF folder. May be null.
Method Detail

getPropertyContext

public PropertyContext getPropertyContext(PropertyDescriptor propertyDescriptor)
                                   throws NullPointerException
Description copied from interface: PropertyContextProvider
Creates a new property context for the given propertyDescriptor.

Specified by:
getPropertyContext in interface PropertyContextProvider
Parameters:
propertyDescriptor - the descriptor whose context is requested.
Returns:
the context for the property.
Throws:
NullPointerException - of propertyDescriptor 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.