org.apache.cocoon.framework
Interface Director

All Known Implementing Classes:
Manager

public interface Director

A Director is an actor manager. Actors refer to their director to get the actor associated to the respective role. This is useful to decouple the acting role from the actual class performing that part in the play.

Version:
$Revision: 1.1 $ $Date: 1999/08/14 22:17:37 $
Author:
Stefano Mazzocchi

Method Summary
 Actor getActor(java.lang.String role)
          Get the actor currently playing the given role.
 java.util.Enumeration getRoles()
          Get the roles currently set.
 void setRole(java.lang.String role, Actor actor)
          Set the actor for the role.
 

Method Detail

getActor

public Actor getActor(java.lang.String role)
Get the actor currently playing the given role.

setRole

public void setRole(java.lang.String role,
                    Actor actor)
Set the actor for the role.

getRoles

public java.util.Enumeration getRoles()
Get the roles currently set.


Copyright 1999 Java Apache Project. All Rights Reserved.