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 java.lang.Object
implements PropertiesAdapter

Simplest properties adapter. Loads properties from a map.

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

Constructor Summary
MapPropertiesAdapter(java.util.Map<java.lang.String,java.lang.Object> properties)
          Constructor.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> properties)
Constructor.

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

getProperties

public java.util.Map<java.lang.String,java.lang.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 © 2008. All Rights Reserved.