org.apache.commons.modeler.demo
Class Engine

java.lang.Object
  extended by org.apache.commons.modeler.demo.Engine
All Implemented Interfaces:
Container

public class Engine
extends java.lang.Object
implements Container

Sample managed object for the Modeler Demonstration Application, based on the Catalina architecture of Tomcat 4.

Version:
$Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Constructor Summary
Engine()
          Construct a default instance of this class.
Engine(java.lang.String name, java.lang.String defaultHost, Service service)
          Construct a configured instance of this class.
 
Method Summary
 java.lang.String getDefaultHost()
           
 java.lang.String getName()
          Return the name of this Container.
 Container getParent()
          Return the parent Container of this Container.
 Service getService()
           
 void setDefaultHost(java.lang.String defaultHost)
           
 void setName(java.lang.String name)
          Set the name of this Container.
 void setParent(Container parent)
          Set the parent Container of this Container.
 void setService(Service service)
           
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Engine

public Engine()
Construct a default instance of this class.


Engine

public Engine(java.lang.String name,
              java.lang.String defaultHost,
              Service service)
Construct a configured instance of this class.

Parameters:
name - Name of this Engine
defaultHost - Default host name for this Engine
service - Associated service
Method Detail

getDefaultHost

public java.lang.String getDefaultHost()

setDefaultHost

public void setDefaultHost(java.lang.String defaultHost)

getName

public java.lang.String getName()
Description copied from interface: Container
Return the name of this Container.

Specified by:
getName in interface Container

setName

public void setName(java.lang.String name)
Description copied from interface: Container
Set the name of this Container.

Specified by:
setName in interface Container
Parameters:
name - The new name

getParent

public Container getParent()
Description copied from interface: Container
Return the parent Container of this Container.

Specified by:
getParent in interface Container

setParent

public void setParent(Container parent)
Description copied from interface: Container
Set the parent Container of this Container.

Specified by:
setParent in interface Container
Parameters:
parent - The new parent container

getService

public Service getService()

setService

public void setService(Service service)

toString

public java.lang.String toString()
Return a String representation of this object.

Overrides:
toString in class java.lang.Object


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.