FileDocCategorySizeDatePackage
J2EEResourceCollection.javaAPI DocGlassfish v2 API3243Fri May 04 22:35:10 BST 2007com.sun.enterprise.repository

J2EEResourceCollection

public interface J2EEResourceCollection
Interface representing a collection of J2EEResources, ordered by type and keyed by name.
author
Kenneth Saks

Fields Summary
Constructors Summary
Methods Summary
public voidaddResource(J2EEResource resource)
Add a resource. This resource will replace any existing one with the same type and name.

public java.util.SetgetAllResources()
Get all the resources.

public J2EEResourcegetResourceByName(int type, java.lang.String name)
Direct-access resource lookup.

return
J2EEResource if resource was found and null otherwise

public java.util.SetgetResourcesByType(int type)
Get all the resources of a given type.

return
Shallow copy of resource set. If there are no resources of the given type, an empty set is returned.

public voidremoveAllResourcesByType(int type)
Remove all resources of the given type. After this call getResourcesByType(type) should return an empty set.

public booleanremoveResource(J2EEResource resource)
Remove a resource.

return
true if resource was removed, false if resource was not found