    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface org.w3c.tools.resources.ContainerInterface

public interface ContainerInterface

##

delete(String)
  Remove a child resource from that container.
enumerateResourceIdentifiers(boolean)
  Enumerate children resource identifiers.
lookup(String)
  Lookup a children in the container.
registerResource(String, Resource, Hashtable)
  Initialize and register the given resource within that container.

##

enumerateResourceIdentifiers

     public abstract Enumeration enumerateResourceIdentifiers(boolean all)

  Enumerate children resource identifiers.

  Parameters:
    all - Should all resources be enumerated ? Resources are often created on demand only, this flag allows the caller to tell the container about wether it is interested only in already created resources, or in all resources (even the one that have not yet been created).
  Returns:
    An String enumeration, one element per child.

lookup

     public abstract ResourceReference lookup(String name)

  Lookup a children in the container.

  Parameters:
    name - The name of the children to lookup. the resource from its store.

delete

     public abstract void delete(String name) throws MultipleLockException

  Remove a child resource from that container.

  Parameters:
    name - The name of the child to remove.
  Throws: MultipleLockException
    If somone else has locked the resource.

registerResource

     public abstract void registerResource(String name,
                                           Resource resource,
                                           Hashtable defs) throws InvalidResourceException

  Initialize and register the given resource within that container.

  Parameters:
    name - The identifier for the resource.
    resource - An unitialized resource instance.
    defs - A default set of init attribute values (may be null).
  Throws: InvalidResourceException
    If an error occurs during the registration.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index