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

java.lang.Object
  extended by 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

Constructor Summary
ResourceGroupVO(String groupId, String location, int version, Resource... resources)
          Constructor.
 
Method Summary
 String getGroupId()
           
 long getLastModified()
           
 String getLocation()
           
 Resource[] getResources()
           
 int getVersion()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 empty
location - bundle location targeted by this configuration group
version - configuration version
resources - array of configurations
Throws:
org.ops4j.lang.NullArgumentException - - If group id is null or empty - If location is empty (null allowed)
Method Detail

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.