org.openejb.webadmin.main
Class DeployerBean

java.lang.Object
  extended by org.openejb.webadmin.main.DeployerBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class DeployerBean
extends java.lang.Object
implements javax.ejb.SessionBean

This is a stateful session bean which handles the action of deployment for the web administration.

Author:
Tim Urberg
See Also:
DeployData, OQLData, ReferenceData, Serialized Form

Field Summary
static java.lang.String ALL_FIELDS_REQUIRED_ERROR
           
 
Constructor Summary
DeployerBean()
           
 
Method Summary
 java.lang.String createIdTable()
          creates an HTML table with form fields for deployment information
 void ejbActivate()
           
 void ejbCreate()
          Creates a new instance of DeployerBean
 void ejbPassivate()
           
 void ejbRemove()
           
 void finishDeployment()
          finishes the deployment by adding the deployment entry and saving the changes
 boolean[] getBooleanValues()
          gets the boolean values for options
 DeployData[] getDeployDataArray()
          gets the array of deploy data objects
 java.lang.String getDeploymentHTML()
          gets the HTML for this deployment
 java.lang.String getJarFile()
          gets the jar file
 void setBooleanValues(boolean[] booleanValues)
          sets the boolean values for options
 void setDeployAndContainerIds(DeployData[] deployDataArray)
          This method takes care of setting the deploy information onto the deployment and creating the HTML for the second page of the deployment
 void setJarFile(java.lang.String jar)
          sets the jar file
 void setSessionContext(javax.ejb.SessionContext sessionContext)
           
 void startDeployment()
          starts the deployment process by getting information from the jar, getting a list of beans and other init functions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_FIELDS_REQUIRED_ERROR

public static final java.lang.String ALL_FIELDS_REQUIRED_ERROR
See Also:
Constant Field Values
Constructor Detail

DeployerBean

public DeployerBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Creates a new instance of DeployerBean

Throws:
javax.ejb.CreateException - if this bean cannot be created

setBooleanValues

public void setBooleanValues(boolean[] booleanValues)
sets the boolean values for options

Parameters:
booleanValues - the array of boolean values

getBooleanValues

public boolean[] getBooleanValues()
gets the boolean values for options

Returns:
the array of boolean values

setJarFile

public void setJarFile(java.lang.String jar)
sets the jar file

Parameters:
jar - the location of the jar file

getJarFile

public java.lang.String getJarFile()
gets the jar file

Returns:
jar the location of the jar file

getDeploymentHTML

public java.lang.String getDeploymentHTML()
gets the HTML for this deployment

Returns:
the HTML for deployment

getDeployDataArray

public DeployData[] getDeployDataArray()
gets the array of deploy data objects

Returns:
the array of deploy data objects

startDeployment

public void startDeployment()
                     throws org.openejb.OpenEJBException
starts the deployment process by getting information from the jar, getting a list of beans and other init functions

Throws:
org.openejb.OpenEJBException - if something goes wrong

setDeployAndContainerIds

public void setDeployAndContainerIds(DeployData[] deployDataArray)
                              throws org.openejb.OpenEJBException
This method takes care of setting the deploy information onto the deployment and creating the HTML for the second page of the deployment

Parameters:
deployDataArray - the array of deployment data
Throws:
org.openejb.OpenEJBException

finishDeployment

public void finishDeployment()
                      throws org.openejb.OpenEJBException
finishes the deployment by adding the deployment entry and saving the changes

Throws:
org.openejb.OpenEJBException - if something goes wrong

createIdTable

public java.lang.String createIdTable()
                               throws org.openejb.OpenEJBException
creates an HTML table with form fields for deployment information

Returns:
the HTML table with the form fields
Throws:
org.openejb.OpenEJBException - when something goes wrong

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

setSessionContext

public void setSessionContext(javax.ejb.SessionContext sessionContext)
Specified by:
setSessionContext in interface javax.ejb.SessionBean


Copyright © 1999-2011 OpenEJB. All Rights Reserved.