org.apache.turbine.modules
Class ActionLoader

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.apache.turbine.modules.GenericLoader
                    |
                    +--org.apache.turbine.modules.ActionLoader
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ActionLoader
extends GenericLoader

The purpose of this class is to allow one to load and execute Action modules.

Version:
$Id: ActionLoader.java,v 1.1.1.1 2001/08/16 05:08:29 jvanzyl Exp $
Author:
Dave Bryson
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 void exec(RunData data, java.lang.String name)
          Attempts to load and execute the external action.
static ActionLoader getInstance()
          The method through which this class is accessed.
 Action getInstance(java.lang.String name)
          Pulls out an instance of the object by name.
 
Methods inherited from class org.apache.turbine.modules.GenericLoader
cache, getBasePackage, reload, setReload
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

exec

public void exec(RunData data,
                 java.lang.String name)
          throws java.lang.Exception
Attempts to load and execute the external action.
Overrides:
exec in class GenericLoader
Parameters:
data - Turbine information.
name - Name of object that will execute the action.
Throws:
java.lang.Exception - a generic exception.

getInstance

public Action getInstance(java.lang.String name)
                   throws java.lang.Exception
Pulls out an instance of the object by name. Name is just the single name of the object.
Parameters:
name - Name of object instance.
Returns:
An Action with the specified name, or null.
Throws:
java.lang.Exception - a generic exception.

getInstance

public static ActionLoader getInstance()
The method through which this class is accessed.
Returns:
The single instance of this class.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.