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 java.lang.Object
- implements ResourceGroup
Simple implementation of a resource group as an (immutable) Value Object.
- Since:
- 0.3.0, March 07, 2008
- Author:
- Alin Dreghiciu
|
Constructor Summary |
ResourceGroupVO(java.lang.String groupId,
java.lang.String location,
int version,
Resource... resources)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceGroupVO
public ResourceGroupVO(java.lang.String groupId,
java.lang.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 java.lang.String getGroupId()
- Specified by:
getGroupId in interface ResourceGroup
- See Also:
ResourceGroup.getGroupId()
getLocation
public java.lang.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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008. All Rights Reserved.