org.apache.cocoon.framework
Class Manager

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.apache.cocoon.framework.Manager

public class Manager
extends java.util.Hashtable
implements Actor, Factory, Director

This class is used to create and control software actors.

Version:
$Revision: 1.4 $ $Date: 1999/10/26 16:20:36 $
Author:
Stefano Mazzocchi
See Also:
Serialized Form

Fields inherited from class java.util.Hashtable
count, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
Manager()
           
 
Method Summary
 java.lang.Object create(java.lang.String name)
          Create the instance of a class given its name.
 java.lang.Object create(java.lang.String name, Configurations conf)
          Create the instance of a class and, if configurable, use the given configurations to configure it.
 java.util.Vector create(java.util.Vector names)
          Create a vector of instances.
 java.util.Vector create(java.util.Vector names, Configurations conf)
          Create a vector of instances with given configurations.
 Actor getActor(java.lang.String role)
          Get the actor currently playing the given role.
 java.util.Enumeration getRoles()
          Get the roles currently set.
 void init(Director director)
          Initialize the actor by indicating their director.
 void setRole(java.lang.String role, Actor actor)
          Set the actor for the role.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

Manager

public Manager()
Method Detail

init

public void init(Director director)
Initialize the actor by indicating their director.
Specified by:
init in interface Actor

create

public java.lang.Object create(java.lang.String name)
Create the instance of a class given its name.
Specified by:
create in interface Factory

create

public java.lang.Object create(java.lang.String name,
                               Configurations conf)
                        throws java.lang.RuntimeException
Create the instance of a class and, if configurable, use the given configurations to configure it.
Specified by:
create in interface Factory

create

public java.util.Vector create(java.util.Vector names)
Create a vector of instances.
Specified by:
create in interface Factory

create

public java.util.Vector create(java.util.Vector names,
                               Configurations conf)
Create a vector of instances with given configurations.
Specified by:
create in interface Factory

getActor

public Actor getActor(java.lang.String role)
Get the actor currently playing the given role.
Specified by:
getActor in interface Director

setRole

public void setRole(java.lang.String role,
                    Actor actor)
Set the actor for the role.
Specified by:
setRole in interface Director

getRoles

public java.util.Enumeration getRoles()
Get the roles currently set.
Specified by:
getRoles in interface Director


Copyright 1999 Java Apache Project. All Rights Reserved.