@Module public class EnterpriseApplication extends java.lang.Object implements EnvironmentBean, EnvironmentDeployInstance
| Modifier and Type | Class and Description |
|---|---|
class |
EnterpriseApplication.Module |
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityRole(SecurityRole role)
Adds a security role.
|
static EnterpriseApplication |
create(java.lang.String name) |
EnterpriseApplication.Module |
createModule()
Adds a module.
|
void |
destroy()
destroys the e-application.
|
WebAppController |
findWebAppEntry(java.lang.String name)
Returns any matching web-app.
|
java.util.ArrayList<WebAppController> |
getApplications()
Returns the webapps for the enterprise-application.
|
EnvironmentClassLoader |
getClassLoader()
Returns the class loader.
|
java.lang.String |
getClientRefs() |
java.lang.Throwable |
getConfigException()
Gets the config exception.
|
static EnterpriseApplication |
getCurrent() |
java.lang.String |
getLibraryDirectory()
Gets the library directory.
|
java.lang.String |
getName()
Gets the name.
|
Path |
getRootDirectory()
Sets the root directory.
|
void |
init()
Configures the application.
|
boolean |
isDeployError()
Returns true if it's modified.
|
boolean |
isDeployIdle()
Returns true if the application is idle.
|
boolean |
isModified()
Returns true if it's modified.
|
boolean |
isModifiedNow()
Returns true if it's modified.
|
boolean |
logModified(java.util.logging.Logger log)
Log the reason for modification.
|
void |
preConfigInit()
Initialization before configuration
|
void |
setConfigException(java.lang.Throwable e)
Sets the config exception.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setDisplayName(java.lang.String name)
Sets the display name.
|
void |
setEarPath(Path earPath)
Sets the path to the .ear file
|
void |
setEjbServerJndiName(java.lang.String name)
Sets the ejb-server jndi name.
|
void |
setEnvironmentClassLoader(EnvironmentClassLoader loader)
Sets the class loader.
|
void |
setIcon(Icon icon)
Sets the icon.
|
void |
setId(java.lang.String id)
Sets the id
|
void |
setLibraryDirectory(java.lang.String libraryDirectory)
Sets the library directory.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix URL for web applications.
|
void |
setSchemaLocation(java.lang.String schema)
Sets the schema location
|
void |
setVersion(java.lang.String version)
Sets the application version.
|
void |
setWebapps(Path webappsPath)
Sets the path to the expanded webapps
|
void |
start()
Configures the application.
|
void |
stop()
Stops the e-application.
|
java.lang.String |
toString() |
public static EnterpriseApplication create(java.lang.String name)
public static EnterpriseApplication getCurrent()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setLibraryDirectory(java.lang.String libraryDirectory)
public java.lang.String getLibraryDirectory()
public void setEjbServerJndiName(java.lang.String name)
public Path getRootDirectory()
public EnvironmentClassLoader getClassLoader()
getClassLoader in interface DeployInstancegetClassLoader in interface EnvironmentBeanpublic void setEnvironmentClassLoader(EnvironmentClassLoader loader)
public void setEarPath(Path earPath)
public void setWebapps(Path webappsPath)
public void setPrefix(java.lang.String prefix)
public void setId(java.lang.String id)
public void setVersion(java.lang.String version)
public void setSchemaLocation(java.lang.String schema)
public void setDisplayName(java.lang.String name)
public void setDescription(java.lang.String description)
public void setIcon(Icon icon)
public EnterpriseApplication.Module createModule()
public void addSecurityRole(SecurityRole role)
public boolean isModified()
isModified in interface DeployInstanceisModified in interface Dependencypublic boolean isModifiedNow()
isModifiedNow in interface DeployInstancepublic boolean logModified(java.util.logging.Logger log)
logModified in interface DeployInstancelogModified in interface Dependencypublic boolean isDeployError()
public boolean isDeployIdle()
isDeployIdle in interface DeployInstancepublic void setConfigException(java.lang.Throwable e)
setConfigException in interface DeployInstancepublic java.lang.Throwable getConfigException()
getConfigException in interface DeployInstancepublic void preConfigInit()
preConfigInit in interface EnvironmentDeployInstance@PostConstruct public void init() throws java.lang.Exception
init in interface EnvironmentDeployInstancejava.lang.Exceptionpublic void start()
start in interface DeployInstancepublic WebAppController findWebAppEntry(java.lang.String name)
public java.util.ArrayList<WebAppController> getApplications()
public void stop()
public void destroy()
destroy in interface DeployInstancepublic java.lang.String getClientRefs()
public java.lang.String toString()
toString in class java.lang.Object