org.ops4j.pax.coin.provider.scanner
Class ResourceGroupVO
java.lang.Object
org.ops4j.pax.coin.provider.scanner.ResourceGroupVO
- All Implemented Interfaces:
- ResourceGroup
public class ResourceGroupVO
- extends Object
- implements ResourceGroup
Simple implementation of a resource group as an (immutable) Value Object.
- Since:
- 0.3.0, March 07, 2008
- Author:
- Alin Dreghiciu
ResourceGroupVO
public ResourceGroupVO(String groupId,
String location,
int version,
Resource... resources)
- Constructor. It will calculate last modified as a max between last modified of configurations.
- Parameters:
groupId
- configuration group id; cannot be null or emptylocation
- bundle location targeted by this configuration groupversion
- configuration versionresources
- array of configurations
- Throws:
org.ops4j.lang.NullArgumentException
- - If group id is null or empty
- If location is empty (null allowed)
getGroupId
public String getGroupId()
- Specified by:
getGroupId
in interface ResourceGroup
- See Also:
ResourceGroup.getGroupId()
getLocation
public String getLocation()
- Specified by:
getLocation
in interface ResourceGroup
- See Also:
ResourceGroup.getLocation()
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface ResourceGroup
- See Also:
ResourceGroup.getLastModified()
getVersion
public int getVersion()
- Specified by:
getVersion
in interface ResourceGroup
- See Also:
ResourceGroup.getVersion()
getResources
public Resource[] getResources()
- Specified by:
getResources
in interface ResourceGroup
- See Also:
ResourceGroup.getResources()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.