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 ArchiveFactoryarchiveFactorystatic Attributes.NameGLASSFISH_APP_NAMEname of manifest entry in facade conveying the app namestatic Attributes.NameGLASSFISH_APPCLIENTname of a manifest entry in an app client facade listing the URI of the developer's original app client JARstatic Attributes.NameGLASSFISH_APPCLIENT_GROUPname of a manifest entry in an EAR facade listing the URIs of the individual app client facades in the groupstatic Attributes.NameGLASSFISH_APPCLIENT_MAIN_CLASSname 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 StringgetAnchorDir()protected AppClientArchivistgetArchivist()protected static AppClientArchivistgetArchivist(org.glassfish.hk2.api.ServiceLocator habitat)URI[]getClassPathURIs()ApplicationClientDescriptorgetDescriptor(URLClassLoader loader)Return the augmented descriptor constructed during deployment and stored in the facade client JAR.ClassgetMainClass()URIgetURI()protected URI[]toURIs(String uriList)voidvalidateDescriptor()
-
-
-
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:
IOExceptionSAXParseException
-
getClassPathURIs
public URI[] getClassPathURIs()
-
-