org.backsource.amsterdam.service
Class Application

java.lang.Object
  extended byorg.backsource.amsterdam.service.Application
All Implemented Interfaces:
Servable

public class Application
extends java.lang.Object
implements Servable

Application.java Created: Tue Mar 23 16:18:41 2004

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Constructor Summary
Application()
           
 
Method Summary
 void addService(Service serv)
          Add a service to this application.
 void destroy()
          Destroys all the containers of this application.
 org.apache.commons.logging.Log getLogger()
           
 java.lang.String getName()
          Get the name of this Application.
 Service getService(java.lang.String name)
          Get a service from this Application that corresponds to a given name
 java.util.Collection getServices()
          Get all containers in this Application.
 java.net.URL getURL()
          Get the URL from which this Application was deployed
 void init()
          Initializes all the containers of this application.
 void removeService(Service serv)
          Remove a service from this application.
 void setName(java.lang.String name)
          Set the name of this Application
 void setURL(java.net.URL url)
          Set the URL that was used to deploy this Application
 void start()
          Starts all the containers of this application.
 void stop()
          Stops all the containers of this application.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()

addService

public void addService(Service serv)
Add a service to this application. This is called by the ServiceFactory.

Parameters:
serv -

removeService

public void removeService(Service serv)
Remove a service from this application.

Parameters:
serv -

getService

public Service getService(java.lang.String name)
Get a service from this Application that corresponds to a given name

Parameters:
name - ejb-name name defined in ejb-jar.xml
Returns:
container for the named service, or null if the container was not found

getServices

public java.util.Collection getServices()
Get all containers in this Application.

Returns:
a collection of containers for each enterprise bean in this application unit.

getName

public java.lang.String getName()
Get the name of this Application.

Returns:

setName

public void setName(java.lang.String name)
Set the name of this Application

Parameters:
name -

getURL

public java.net.URL getURL()
Get the URL from which this Application was deployed

Returns:

setURL

public void setURL(java.net.URL url)
Set the URL that was used to deploy this Application

Parameters:
url -

init

public void init()
          throws java.lang.Exception
Initializes all the containers of this application.

Specified by:
init in interface Servable
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Starts all the containers of this application.

Specified by:
start in interface Servable
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Stops all the containers of this application.

Specified by:
stop in interface Servable
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Destroys all the containers of this application.

Specified by:
destroy in interface Servable
Throws:
java.lang.Exception

toString

public java.lang.String toString()


Copyright © 2001-2004 Backsource. All Rights Reserved.