org.codehaus.cargo.container.tomcat.internal
Class Tomcat5xEmbedded.Engine

java.lang.Object
  extended byorg.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Wrapper
      extended byorg.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Engine
Enclosing class:
Tomcat5xEmbedded

public final class Tomcat5xEmbedded.Engine
extends org.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Wrapper

See Also:
org.apache.catalina.Engine

Field Summary
protected  java.lang.Object core
          Wrapped object to be accessed via reflection.
 
Constructor Summary
Tomcat5xEmbedded.Engine(java.lang.Object core)
          Wraps an engine object.
 
Method Summary
 void addChild(Tomcat5xEmbedded.Host host)
          Adds a new Host to the engine.
protected  java.lang.Object invoke(java.lang.reflect.Method method)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] args)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1, java.lang.Object arg2)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
          Invokes a method on the wrapped object.
 void setBaseDir(java.lang.String baseDir)
          Sets the directory that Tomcat will use as a workspace.
 void setDefaultHost(java.lang.String name)
          Don't know what it really does.
 void setName(java.lang.String name)
          Assigns a name to engine.
 void setParentClassLoader(java.lang.ClassLoader cl)
          Sets the ClassLoader that this engine will delegate to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

protected final java.lang.Object core
Wrapped object to be accessed via reflection.

Constructor Detail

Tomcat5xEmbedded.Engine

public Tomcat5xEmbedded.Engine(java.lang.Object core)
Wraps an engine object.

Parameters:
core - Must be non-null.
Method Detail

setName

public void setName(java.lang.String name)
Assigns a name to engine.

Parameters:
name - non-null

setBaseDir

public void setBaseDir(java.lang.String baseDir)
Sets the directory that Tomcat will use as a workspace.

Parameters:
baseDir - The directory name.

addChild

public void addChild(Tomcat5xEmbedded.Host host)
Adds a new Host to the engine.

Parameters:
host - must be non-null.

setDefaultHost

public void setDefaultHost(java.lang.String name)
Don't know what it really does.

Parameters:
name - host name.

setParentClassLoader

public void setParentClassLoader(java.lang.ClassLoader cl)
Sets the ClassLoader that this engine will delegate to.

Parameters:
cl - This needs to be set to ClassLoader that can see classes that implement Tomcat, or else you'll get errors like "Servlet jsp is not available" (because the system failed to load JspServlet class.)

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
arg2 - the 2nd argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2,
                                  java.lang.Object arg3)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
arg2 - the 2nd argument for invocations.
arg3 - the 3rd argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object[] args)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
args - the arguments for invocations.
Returns:
the value from the invocation.


Copyright © 2004-2008 Codehaus. All Rights Reserved.