com.wiley.posa3.resourcelifecyclemanager
Class ResourceGroup

java.lang.Object
  extended bycom.wiley.posa3.resourcelifecyclemanager.ResourceGroup

public class ResourceGroup
extends java.lang.Object

The ResourceGroup associates two or more resources with each other.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Constructor Summary
ResourceGroup(java.lang.String id)
          Constructor.
 
Method Summary
 void add(ManagedResource resource, ResourceType type)
          Add a managed resource to the group.
 java.lang.String getID()
          Get the id of the group
 java.util.Iterator iterator()
          Return an iterator over the collection of resources that this group holds
 void release()
          Release all the resources contained in this group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceGroup

public ResourceGroup(java.lang.String id)
Constructor.

Parameters:
id - the id of the group
Method Detail

getID

public java.lang.String getID()
Get the id of the group

Returns:
the id of the group

add

public void add(ManagedResource resource,
                ResourceType type)
Add a managed resource to the group.

Parameters:
resource - the managed resource to add to the group.
type - the type of the resource.

iterator

public java.util.Iterator iterator()
Return an iterator over the collection of resources that this group holds

Returns:
Iterator an iterator over the collection of resources that this group holds

release

public void release()
Release all the resources contained in this group



Copyright 2004 John Wiley and Sons. All Rights Reserved.