com.caucho.server.e_app
Class EntAppClient

java.lang.Object
  extended by com.caucho.server.e_app.EntAppClient
All Implemented Interfaces:
EnvironmentBean, DeployInstance, Dependency

public class EntAppClient
extends java.lang.Object
implements DeployInstance, EnvironmentBean

An enterprise application (ear)


Nested Class Summary
 class EntAppClient.EjbLink
           
 class EntAppClient.Module
           
 class EntAppClient.SecurityRole
           
 
Method Summary
 void addEjbRef(EjbRef ejbRef)
          Adds an ejb-reference.
 EntAppClient.EjbLink createEjbLink()
          Adds an EjbLink.
 EntAppClient.Module createModule()
          Adds a module.
 EntAppClient.SecurityRole createSecurityRole()
          Adds an EjbLink.
 void destroy()
          Destroys the client.
 EnvironmentClassLoader getClassLoader()
          Returns the class loader.
 java.lang.Throwable getConfigException()
          Gets the config exception.
 EJBClientInterface getEJBClient()
          Returns the ejb client.
 java.lang.String getName()
          Gets the name.
 Path getRootDirectory()
          Sets the root directory.
 void init()
          Initialize the client.
 boolean isDeployError()
          Return true is the deployment had an error.
 boolean isDeployIdle()
          Return true is the deployment is idle
 boolean isModified()
          Return true for modified.
 boolean isModifiedNow()
          Return true for modified.
 boolean logModified(java.util.logging.Logger log)
          Log the reason for modification.
 void main(java.lang.String[] args)
          Execute the main class.
 void main(java.lang.String mainClassName, java.lang.String[] args)
          Execute the main class.
 void setArchivePath(Path archivePath)
          Sets the archive path
 void setConfigException(java.lang.Throwable e)
          Sets the config exception.
 void setDescription(java.lang.String description)
          Sets the description.
 void setDisplayName(java.lang.String displayName)
          Sets the display-name.
 void setEnvironmentClassLoader(EnvironmentClassLoader loader)
          Sets the class loader.
 void setMainClass(java.lang.String mainClass)
          Sets the main class.
 void setName(java.lang.String name)
          Sets the name.
 void setRootDirectory(Path rootDir)
          Sets the root directory.
 void setSchemaLocation(java.lang.String s)
          Stub for the xsi:schemaLocation tag.
 void setVersion(java.lang.String s)
          Stub for the version tag.
 void start()
          Start the client.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setName

public void setName(java.lang.String name)
Sets the name.


getName

public java.lang.String getName()
Gets the name.


getEJBClient

public EJBClientInterface getEJBClient()
                                throws java.lang.ClassNotFoundException,
                                       java.lang.InstantiationException,
                                       java.lang.IllegalAccessException
Returns the ejb client.

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

setRootDirectory

public void setRootDirectory(Path rootDir)
Sets the root directory.


getRootDirectory

public Path getRootDirectory()
Sets the root directory.


setArchivePath

public void setArchivePath(Path archivePath)
Sets the archive path


setDescription

public void setDescription(java.lang.String description)
Sets the description.


setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets the display-name.


createModule

public EntAppClient.Module createModule()
Adds a module.


addEjbRef

public void addEjbRef(EjbRef ejbRef)
Adds an ejb-reference.


setMainClass

public void setMainClass(java.lang.String mainClass)
Sets the main class.


getClassLoader

public EnvironmentClassLoader getClassLoader()
Returns the class loader.

Specified by:
getClassLoader in interface EnvironmentBean
Specified by:
getClassLoader in interface DeployInstance

setEnvironmentClassLoader

public void setEnvironmentClassLoader(EnvironmentClassLoader loader)
Sets the class loader.


setConfigException

public void setConfigException(java.lang.Throwable e)
Sets the config exception.

Specified by:
setConfigException in interface DeployInstance

getConfigException

public java.lang.Throwable getConfigException()
Gets the config exception.

Specified by:
getConfigException in interface DeployInstance

createEjbLink

public EntAppClient.EjbLink createEjbLink()
Adds an EjbLink.


createSecurityRole

public EntAppClient.SecurityRole createSecurityRole()
Adds an EjbLink.


setSchemaLocation

public void setSchemaLocation(java.lang.String s)
Stub for the xsi:schemaLocation tag.


setVersion

public void setVersion(java.lang.String s)
Stub for the version tag.


init

public void init()
Initialize the client.


isModified

public boolean isModified()
Return true for modified.

Specified by:
isModified in interface DeployInstance
Specified by:
isModified in interface Dependency

isModifiedNow

public boolean isModifiedNow()
Return true for modified.

Specified by:
isModifiedNow in interface DeployInstance

logModified

public boolean logModified(java.util.logging.Logger log)
Log the reason for modification.

Specified by:
logModified in interface DeployInstance
Specified by:
logModified in interface Dependency

isDeployError

public boolean isDeployError()
Return true is the deployment had an error.

Specified by:
isDeployError in interface DeployInstance

isDeployIdle

public boolean isDeployIdle()
Return true is the deployment is idle

Specified by:
isDeployIdle in interface DeployInstance

start

public void start()
Start the client.

Specified by:
start in interface DeployInstance

main

public void main(java.lang.String[] args)
          throws java.lang.Throwable
Execute the main class.

Throws:
java.lang.Throwable

main

public void main(java.lang.String mainClassName,
                 java.lang.String[] args)
          throws java.lang.Throwable
Execute the main class.

Throws:
java.lang.Throwable

destroy

public void destroy()
Destroys the client.

Specified by:
destroy in interface DeployInstance

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object