Class FacadeLaunchable
- java.lang.Object
-
- org.glassfish.appclient.client.acc.FacadeLaunchable
-
- Direct Known Subclasses:
JWSFacadeLaunchable
public class FacadeLaunchable extends Object
Represents a generated JAR created during deployment corresponding to the developer's original app client JAR or EAR. Even if the facade object represents an EAR facade, it uses the caller-supplied main class name and/or caller-supplied app client name to select one of the app client facades listed in the group facade. That is, once fully initialized, a given Facade instance represents the single app client to be launched.
-
-
Field Summary
Fields Modifier and Type Field Description static ArchiveFactory
archiveFactory
static Attributes.Name
GLASSFISH_APP_NAME
name of manifest entry in facade conveying the app namestatic Attributes.Name
GLASSFISH_APPCLIENT
name of a manifest entry in an app client facade listing the URI of the developer's original app client JARstatic Attributes.Name
GLASSFISH_APPCLIENT_GROUP
name of a manifest entry in an EAR facade listing the URIs of the individual app client facades in the groupstatic Attributes.Name
GLASSFISH_APPCLIENT_MAIN_CLASS
name of a manifest entry in an app client facade indicating the app client's main class
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAnchorDir()
protected AppClientArchivist
getArchivist()
protected static AppClientArchivist
getArchivist(org.glassfish.hk2.api.ServiceLocator habitat)
URI[]
getClassPathURIs()
ApplicationClientDescriptor
getDescriptor(URLClassLoader loader)
Return the augmented descriptor constructed during deployment and stored in the facade client JAR.Class
getMainClass()
URI
getURI()
protected URI[]
toURIs(String uriList)
void
validateDescriptor()
-
-
-
Field Detail
-
GLASSFISH_APPCLIENT_GROUP
public static final Attributes.Name GLASSFISH_APPCLIENT_GROUP
name of a manifest entry in an EAR facade listing the URIs of the individual app client facades in the group
-
GLASSFISH_APPCLIENT_MAIN_CLASS
public static final Attributes.Name GLASSFISH_APPCLIENT_MAIN_CLASS
name of a manifest entry in an app client facade indicating the app client's main class
-
GLASSFISH_APPCLIENT
public static final Attributes.Name GLASSFISH_APPCLIENT
name of a manifest entry in an app client facade listing the URI of the developer's original app client JAR
-
GLASSFISH_APP_NAME
public static final Attributes.Name GLASSFISH_APP_NAME
name of manifest entry in facade conveying the app name
-
archiveFactory
public static final ArchiveFactory archiveFactory
-
-
Method Detail
-
getURI
public URI getURI()
-
getAnchorDir
public String getAnchorDir()
-
getArchivist
protected AppClientArchivist getArchivist()
-
getArchivist
protected static AppClientArchivist getArchivist(org.glassfish.hk2.api.ServiceLocator habitat)
-
validateDescriptor
public void validateDescriptor()
-
getMainClass
public Class getMainClass() throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getDescriptor
public ApplicationClientDescriptor getDescriptor(URLClassLoader loader) throws IOException, SAXParseException
Return the augmented descriptor constructed during deployment and stored in the facade client JAR.- Parameters:
loader
-- Returns:
- Throws:
IOException
SAXParseException
-
getClassPathURIs
public URI[] getClassPathURIs()
-
-