org.ops4j.pax.coin.adapter
Class MapPropertiesAdapter

java.lang.Object
  extended by org.ops4j.pax.coin.adapter.MapPropertiesAdapter
All Implemented Interfaces:
PropertiesAdapter

public class MapPropertiesAdapter
extends Object
implements PropertiesAdapter

Simplest properties adapter. Loads properties from a map.

Since:
0.3.0, March 08, 2008
Author:
Alin Dreghiciu

Constructor Summary
MapPropertiesAdapter(Map<String,Object> properties)
          Constructor.
 
Method Summary
 Map<String,Object> getProperties()
          Returns a map of properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPropertiesAdapter

public MapPropertiesAdapter(Map<String,Object> properties)
Constructor.

Parameters:
properties - configuration properties; cannot be null
Throws:
org.ops4j.lang.NullArgumentException - - If configuration properties are null
Method Detail

getProperties

public Map<String,Object> getProperties()
Description copied from interface: PropertiesAdapter
Returns a map of properties.

Specified by:
getProperties in interface PropertiesAdapter
Returns:
configuration properties
See Also:
PropertiesAdapter.getProperties()


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.