|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.FxDropApplication
public class FxDropApplication
Information about a "drop application" deployed as part of the flexive EAR.
Some properties can be configured in a file called flexive-application.properties in the root
folder of the application shared JAR file:
# Application name
name=hello-flexive
displayName=Hello-World Application
# Context root (must match the path specified in application.xml, used for the backend start page)
contextRoot=war
| Constructor Summary | |
|---|---|
FxDropApplication(java.lang.String name)
Create a new application descriptor. |
|
FxDropApplication(java.lang.String name,
java.lang.String contextRoot,
java.lang.String displayName,
java.lang.String resourceJarURL)
Deprecated. pass the actual URL as the last argument for better compatibility |
|
FxDropApplication(java.lang.String name,
java.lang.String contextRoot,
java.lang.String displayName,
java.net.URL resourceURL)
Create a new application descriptor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContextRoot()
Return the context root of the web application. |
java.lang.String |
getDisplayName()
Returns a human-readable name of the application. |
java.lang.String |
getName()
Return the unique name of the application. |
java.util.jar.JarInputStream |
getResourceJarStream()
Deprecated. use loadTextResources(String) for better compatibility, since drop applications may also
be served directly from a directory (e.g. in Maven test suites). |
java.lang.String |
getResourceJarURL()
Returns the URL of the JAR file containing the resources of the drop application, usually the "shared" module (but it could be any JAR file). |
boolean |
isWebContextAvailable()
Returns true when the drop application has a web context available (i.e. |
java.util.Map<java.lang.String,java.lang.String> |
loadTextResources(java.lang.String pathPrefix)
Load text resources packaged with the drop. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FxDropApplication(java.lang.String name,
java.lang.String contextRoot,
java.lang.String displayName,
java.lang.String resourceJarURL)
name - the unique name of the applicationcontextRoot - the context root of the web applicationdisplayName - a human-readable name of the applicationresourceJarURL - the URL of the JAR file containing the resources of the drop application
public FxDropApplication(java.lang.String name,
java.lang.String contextRoot,
java.lang.String displayName,
java.net.URL resourceURL)
name - the unique name of the applicationcontextRoot - the context root of the web applicationdisplayName - a human-readable name of the applicationresourceURL - the URL that was used for loading flexive-application.propertiespublic FxDropApplication(java.lang.String name)
name - the unique name of the application| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getContextRoot()
name,
but can be customized in flexive-application.properties.
When an application uses
flexive-application.properties
but does not specify a contextRoot, it is assumed that the application does not provide a web context.
public boolean isWebContextAvailable()
public java.lang.String getDisplayName()
name,
but can be customized in flexive-application.properties.
public java.lang.String getResourceJarURL()
public java.util.jar.JarInputStream getResourceJarStream()
throws java.io.IOException
loadTextResources(String) for better compatibility, since drop applications may also
be served directly from a directory (e.g. in Maven test suites).
java.io.IOException - if the JAR file stream could not be opened
public java.util.Map<java.lang.String,java.lang.String> loadTextResources(java.lang.String pathPrefix)
throws java.io.IOException
pathPrefix - a path prefix (e.g. "scripts/")
java.io.IOException - on I/O errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||