org.directwebremoting.impl
Class CreatorModule

java.lang.Object
  extended by org.directwebremoting.impl.CreatorModule
All Implemented Interfaces:
Module

public class CreatorModule
extends java.lang.Object
implements Module

An adapter module for Creators.

Author:
Mike Wilson [mikewse at g mail dot com]

Constructor Summary
CreatorModule(Creator creator, AjaxFilterManager ajaxFilterManager, AccessControl accessControl, boolean allowImpossibleTests, java.lang.String accessLogLevel, boolean debug)
           
 
Method Summary
 java.lang.Object executeMethod(MethodDeclaration methodDecl, java.lang.Object[] parameters)
          Invokes the code behind a logical method declaration, using the supplied parameters.
 MethodDeclaration getMethod(java.lang.String methodName, java.lang.Class<?>... parameterTypes)
          Returns a particular method as matched by the name and parameter types.
 MethodDeclaration[] getMethods()
          Returns all logical method declarations for the module.
 java.lang.String getName()
          Returns the name uniquely identifying the module.
 boolean isCacheable()
          Tells whether the module information as described by this interface may change over time, or may be cached.
 java.lang.String toString()
          Returns a pretty-print friendly string describing the module.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreatorModule

public CreatorModule(Creator creator,
                     AjaxFilterManager ajaxFilterManager,
                     AccessControl accessControl,
                     boolean allowImpossibleTests,
                     java.lang.String accessLogLevel,
                     boolean debug)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Module
Returns the name uniquely identifying the module. This name is also used in JavaScript land.

Specified by:
getName in interface Module
Returns:
name string

isCacheable

public boolean isCacheable()
Description copied from interface: Module
Tells whether the module information as described by this interface may change over time, or may be cached.

Specified by:
isCacheable in interface Module
Returns:
true if cacheable

getMethods

public MethodDeclaration[] getMethods()
Description copied from interface: Module
Returns all logical method declarations for the module.

Specified by:
getMethods in interface Module
Returns:
array of method declarations

getMethod

public MethodDeclaration getMethod(java.lang.String methodName,
                                   java.lang.Class<?>... parameterTypes)
                            throws java.lang.NoSuchMethodException,
                                   java.lang.SecurityException
Description copied from interface: Module
Returns a particular method as matched by the name and parameter types.

Specified by:
getMethod in interface Module
Returns:
method declaration
Throws:
java.lang.NoSuchMethodException
java.lang.SecurityException

executeMethod

public java.lang.Object executeMethod(MethodDeclaration methodDecl,
                                      java.lang.Object[] parameters)
                               throws java.lang.Exception
Description copied from interface: Module
Invokes the code behind a logical method declaration, using the supplied parameters.

Specified by:
executeMethod in interface Module
Returns:
the return value of the method
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Description copied from interface: Module
Returns a pretty-print friendly string describing the module.

Specified by:
toString in interface Module
Overrides:
toString in class java.lang.Object
Returns:
human-readable descriptive string

Copyright 2008