|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployer.Deployer
public final class Deployer
Deployer allowing deploy/undeploy functions on this container.
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_FOLDER
Folder to create in tmp folder. |
private static Deployer |
deployer
Unique instance. |
private static Embedded |
embedded
Embedded server linked to this deployer. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
Deployer()
Private constructor as the instance should be unique (by calling getInstance() method). |
Method Summary | |
---|---|
private EZBContainer |
createContainer(java.lang.String fileName)
Create a new container for the given fileName. |
void |
deployEar(java.lang.String fileName)
Deploy an application packaged in a EAR file. |
void |
deployEjbJar(java.lang.String fileName)
Deploy an EJB packaged in a JAR file. |
java.lang.String |
deployFile(java.lang.Integer typeparam,
java.lang.Byte[] bfile,
java.lang.String filename)
Deploy a file on the EJB3 container. |
static Deployer |
getInstance()
|
static void |
setEmbedded(Embedded embedded)
Sets the embedded object of this deployer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Deployer deployer
private static Embedded embedded
private static JLog logger
private static final java.lang.String DEFAULT_FOLDER
Constructor Detail |
---|
private Deployer()
Method Detail |
---|
public static Deployer getInstance()
public java.lang.String deployFile(java.lang.Integer typeparam, java.lang.Byte[] bfile, java.lang.String filename)
deployFile
in interface IDeployer
typeparam
- type of the file (EJB, WAR, EAR, RAR, CAR) (ModuleType
of JSR88)bfile
- bytes array of the filefilename
- basename of the file to be deployed
public void deployEar(java.lang.String fileName)
deployEar
in interface IDeployer
fileName
- the name of the file to deploypublic void deployEjbJar(java.lang.String fileName)
deployEjbJar
in interface IDeployer
fileName
- the name of the file to deployprivate EZBContainer createContainer(java.lang.String fileName)
fileName
- the name of the file for which a container needs to be created.
public static void setEmbedded(Embedded embedded)
embedded
- the EJB3 server.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |