|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface DeploymentDescriptor
A deployment descriptor such as application.xml.
Method Summary | |
---|---|
String
|
getApplicationName()
The application name. |
String
|
getDescription()
The application description. |
String
|
getDisplayName()
The application display name. |
String
|
getFileName()
The name of the descriptor file, typically "application.xml" |
Boolean
|
getInitializeInOrder()
Whether to initialize modules in the order they appear in the descriptor, with the exception of client modules. |
String
|
getLibraryDirectory()
The name of the directory to look for libraries in. |
Map
|
getModuleTypeMappings()
Mapping of module paths to module types. |
Set
|
getModules()
List of module descriptors. |
Set
|
getSecurityRoles()
List of security roles. |
String
|
getVersion()
The version of application.xml. |
DeploymentDescriptor
|
module(EarModule module, String type)
Add a module to the deployment descriptor. |
DeploymentDescriptor
|
module(String path, String type)
Add a module to the deployment descriptor. |
DeploymentDescriptor
|
readFrom(Reader reader)
Reads the deployment descriptor from a reader. |
boolean
|
readFrom(Object path)
Reads the deployment descriptor from a file. |
DeploymentDescriptor
|
securityRole(EarSecurityRole role)
Add a security role to the deployment descriptor. |
DeploymentDescriptor
|
securityRole(String role)
Add a security role to the deployment descriptor. |
void
|
setApplicationName(String applicationName)
|
void
|
setDescription(String description)
|
void
|
setDisplayName(String displayName)
|
void
|
setFileName(String fileName)
|
void
|
setInitializeInOrder(Boolean initializeInOrder)
|
void
|
setLibraryDirectory(String libraryDirectory)
|
void
|
setModuleTypeMappings(Map moduleTypeMappings)
|
void
|
setModules(Set modules)
|
void
|
setSecurityRoles(Set securityRoles)
|
void
|
setVersion(String version)
|
DeploymentDescriptor
|
webModule(String path, String contextRoot)
Add a web module to the deployment descriptor. |
DeploymentDescriptor
|
withXml(Closure closure)
Adds a closure to be called when the XML document has been created. |
DeploymentDescriptor
|
withXml(Action action)
Adds an action to be called when the XML document has been created. |
DeploymentDescriptor
|
writeTo(Writer writer)
Writes the deployment descriptor into a writer. |
DeploymentDescriptor
|
writeTo(Object path)
Writes the deployment descriptor into a file. |
Method Detail |
---|
public String getApplicationName()
public String getDescription()
public String getDisplayName()
public String getFileName()
public Boolean getInitializeInOrder()
public String getLibraryDirectory()
public Map getModuleTypeMappings()
moduleTypeMappings["myJavaModule.jar"] = "java"
.
public Set getModules()
true
.
public Set getSecurityRoles()
public String getVersion()
public DeploymentDescriptor module(EarModule module, String type)
module
- The module to add.type
- The type of the module, such as "ejb", "java", etc.
public DeploymentDescriptor module(String path, String type)
path
- The path of the module to add.type
- The type of the module, such as "ejb", "java", etc.
public DeploymentDescriptor readFrom(Reader reader)
reader
- The reader to read the deployment descriptor from
public boolean readFrom(Object path)
path
- The path of the file to read the deployment descriptor from
public DeploymentDescriptor securityRole(EarSecurityRole role)
role
- The security role to add.
public DeploymentDescriptor securityRole(String role)
role
- The name of the security role to add.
public void setApplicationName(String applicationName)
public void setDescription(String description)
public void setDisplayName(String displayName)
public void setFileName(String fileName)
public void setInitializeInOrder(Boolean initializeInOrder)
public void setLibraryDirectory(String libraryDirectory)
public void setModuleTypeMappings(Map moduleTypeMappings)
public void setModules(Set modules)
public void setSecurityRoles(Set securityRoles)
public void setVersion(String version)
public DeploymentDescriptor webModule(String path, String contextRoot)
path
- The path of the module to add.contextRoot
- The context root type of the web module.
public DeploymentDescriptor withXml(Closure closure)
closure
- The closure to execute when the XML has been created
public DeploymentDescriptor withXml(Action action)
action
- The action to execute when the XML has been created
public DeploymentDescriptor writeTo(Writer writer)
writer
- The writer to write the deployment descriptor to
public DeploymentDescriptor writeTo(Object path)
path
- The path of the file to write the deployment descriptor into.
Gradle API 1.12