|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jboss.ejb.Application
An Application represents a collection of beans that are deployed as a unit. The beans may use the Application to access other beans within the same deployment unit
Container,
ContainerFactory| Constructor Summary | |
Application()
|
|
| Method Summary | |
void |
addContainer(Container con)
Add a container to this application. |
void |
addLocalHome(Container con,
javax.ejb.EJBLocalHome localHome)
|
void |
destroy()
Destroys all the containers of this application. |
java.lang.ClassLoader |
getClassLoader()
Get the class loader of this Application. |
Container |
getContainer(java.lang.String name)
Get a container from this Application that corresponds to a given name |
java.util.Collection |
getContainers()
Get all containers in this Application. |
javax.ejb.EJBLocalHome |
getLocalHome(Container con)
|
java.lang.String |
getName()
Get the name of 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 |
removeContainer(Container con)
Remove a container from this application. |
void |
removeLocalHome(Container con)
|
void |
setClassLoader(java.lang.ClassLoader cl)
Set the class loader of 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Application()
| Method Detail |
public void addContainer(Container con)
con - public void removeContainer(Container con)
con -
public void addLocalHome(Container con,
javax.ejb.EJBLocalHome localHome)
public void removeLocalHome(Container con)
public javax.ejb.EJBLocalHome getLocalHome(Container con)
public Container getContainer(java.lang.String name)
name - ejb-name name defined in ejb-jar.xmlpublic java.util.Collection getContainers()
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader cl)
name - public java.lang.String getName()
public void setName(java.lang.String name)
name - public java.net.URL getURL()
public void setURL(java.net.URL url)
url -
public void init()
throws java.lang.Exception
init in interface Servicejava.lang.Exception -
public void start()
throws java.lang.Exception
start in interface Servicejava.lang.Exception - public void stop()
stop in interface Servicepublic void destroy()
destroy in interface Service
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||