org.openejb.config
Class AutoDeployer

java.lang.Object
  extended byorg.openejb.config.AutoDeployer

public class AutoDeployer
extends Object

This class represents a command line tool for deploying beans.

At the moment it contains multiple println statements and statements that read input from the user.

These statements are really in chunks in specific times throughout the class. These chunks could be refactored into methods. Then the implementation of those methods could actually be delegated to another class that implements a specific interface we create.

The command line statements could be moved into an implementation of this new interface. We could then create another implementation that gathers information from a GUI.

This would give us a Deploy API rather than just a command line tool. Then beans could be deployed programmatically by another application, by a GUI screen, or by command line.

Note: The command line version should be finished first!!! We don't want to start on a crusade of abstracting code that doesn't yet exist. Functionality first, neat flexible stuff later.

Author:
David Blevins

Constructor Summary
AutoDeployer()
           
AutoDeployer(Openejb config)
           
 
Method Summary
 OpenejbJar deploy(EjbJar jar, String jarLocation)
           
 OpenejbJar deploy(String jarLocation)
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoDeployer

public AutoDeployer()
             throws OpenEJBException

AutoDeployer

public AutoDeployer(Openejb config)
Method Detail

init

public void init()
          throws OpenEJBException
Throws:
OpenEJBException

deploy

public OpenejbJar deploy(String jarLocation)
                  throws OpenEJBException
Throws:
OpenEJBException

deploy

public OpenejbJar deploy(EjbJar jar,
                         String jarLocation)
                  throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2006 OpenEJB. All Rights Reserved.