org.ow2.util.ee.deploy.impl.deployment.ear
Class EARInfoImpl

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.deployment.ear.EARInfoImpl
All Implemented Interfaces:
IEARInfo

public class EARInfoImpl
extends Object
implements IEARInfo

An EAR is a collection of Modules.

Author:
Florent Benoit

Field Summary
 
Fields inherited from interface org.ow2.util.ee.deploy.api.deployment.ear.IEARInfo
DEFAULT_LIBRARY_FOLDER
 
Constructor Summary
EARInfoImpl()
          Default constructor.
 
Method Summary
 void addConnectorModule(ConnectorModule connectorModule)
          Add the given Connector module to the list of Connector modules.
 void addEJBModule(EJBModule ejbModule)
          Add the given EJB module to the list of EJB modules.
 void addJavaModule(JavaModule javaModule)
          Add the given Java module to the list of Java modules.
 void addWebModule(WebModule webModule)
          Add the given Web module to the list of Web modules.
 List<JavaModule> getClients()
           
 List<ConnectorModule> getConnectors()
           
 List<EJBModule> getEJBs()
           
 String getLibraryDirectory()
           
 List<Module> getModules()
           
 List<WebModule> getWebs()
           
 void setLibraryDirectory(String libraryDirectory)
          Sets the library-directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EARInfoImpl

public EARInfoImpl()
Default constructor.

Method Detail

getModules

public List<Module> getModules()
Specified by:
getModules in interface IEARInfo
Returns:
list of modules.

getConnectors

public List<ConnectorModule> getConnectors()
Specified by:
getConnectors in interface IEARInfo
Returns:
list of Connector modules.

getEJBs

public List<EJBModule> getEJBs()
Specified by:
getEJBs in interface IEARInfo
Returns:
list of EJB modules.

addEJBModule

public void addEJBModule(EJBModule ejbModule)
Add the given EJB module to the list of EJB modules.

Parameters:
ejbModule - the module to add

addWebModule

public void addWebModule(WebModule webModule)
Add the given Web module to the list of Web modules.

Parameters:
webModule - the module to add

addConnectorModule

public void addConnectorModule(ConnectorModule connectorModule)
Add the given Connector module to the list of Connector modules.

Parameters:
connectorModule - the module to add

addJavaModule

public void addJavaModule(JavaModule javaModule)
Add the given Java module to the list of Java modules.

Parameters:
javaModule - the module to add

getClients

public List<JavaModule> getClients()
Specified by:
getClients in interface IEARInfo
Returns:
list of Client container modules.

getWebs

public List<WebModule> getWebs()
Specified by:
getWebs in interface IEARInfo
Returns:
list of Web modules.

setLibraryDirectory

public void setLibraryDirectory(String libraryDirectory)
Sets the library-directory.

Parameters:
libraryDirectory - the given library folder

getLibraryDirectory

public String getLibraryDirectory()
Specified by:
getLibraryDirectory in interface IEARInfo
Returns:
the library-directory.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.