org.ops4j.pax.coin.provider.scanner
Class ResourceVO
java.lang.Object
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
ResourceVO
public ResourceVO(String configId,
long lastModified,
Map<String,Object> properties)
- Convenience constructor.
- Parameters:
configId
- configuration id; cannot be null or emptylastModified
- last modified in millisecondsproperties
- properties; cannot be null
ResourceVO
public ResourceVO(String configId,
long lastModified,
PropertiesAdapter propertiesAdapter)
- Constructor.
- Parameters:
configId
- configuration id; cannot be null or emptylastModified
- last modified in millisecondspropertiesAdapter
- properties adapter; cannot be null
- Throws:
org.ops4j.lang.NullArgumentException
- - If configuration id is null or empty
- If properties adapter is null
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.