org.ops4j.pax.coin.provider.scanner
Class ResourceVO

java.lang.Object
  extended by org.ops4j.pax.coin.provider.scanner.ResourceVO
All Implemented Interfaces:
Resource

public class ResourceVO
extends Object
implements Resource

Simple implementation of a resource as an (immutable) Value Object. TODO add equals/hashcode/toString ?

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

Constructor Summary
ResourceVO(String configId, long lastModified, Map<String,Object> properties)
          Convenience constructor.
ResourceVO(String configId, long lastModified, PropertiesAdapter propertiesAdapter)
          Constructor.
 
Method Summary
 String getConfigId()
           
 long getLastModified()
           
 Map<String,Object> getProperties()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceVO

public ResourceVO(String configId,
                  long lastModified,
                  Map<String,Object> properties)
Convenience constructor.

Parameters:
configId - configuration id; cannot be null or empty
lastModified - last modified in milliseconds
properties - properties; cannot be null

ResourceVO

public ResourceVO(String configId,
                  long lastModified,
                  PropertiesAdapter propertiesAdapter)
Constructor.

Parameters:
configId - configuration id; cannot be null or empty
lastModified - last modified in milliseconds
propertiesAdapter - properties adapter; cannot be null
Throws:
org.ops4j.lang.NullArgumentException - - If configuration id is null or empty - If properties adapter is null
Method Detail

getConfigId

public String getConfigId()
Specified by:
getConfigId in interface Resource
See Also:
Resource.getConfigId()

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface Resource
See Also:
Resource.getLastModified()

getProperties

public Map<String,Object> getProperties()
Specified by:
getProperties in interface Resource
See Also:
Resource.getProperties()

toString

public String toString()
Overrides:
toString in class Object


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