Class ClassFileAppClientInfo
- java.lang.Object
-
- org.glassfish.appclient.client.acc.AppClientInfo
-
- org.glassfish.appclient.client.acc.ClassFileAppClientInfo
-
public class ClassFileAppClientInfo extends AppClientInfo
Represents an app client specified by a .class file on the command line.- Author:
- tjquinn
-
-
Field Summary
-
Fields inherited from class org.glassfish.appclient.client.acc.AppClientInfo
_keepExplodedDir, _logger, isJWS, mainClassFromCommandLine, mainClassNameToRun, USER_CODE_IS_SIGNED_PROPERTYNAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClassFileAppClientInfo(boolean isJWS, Logger logger, String mainClassFromCommandLine, String classFileFromCommandLine)
Creates a new instance of the class file app client info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getMainClassNameToRun(ApplicationClientDescriptor acDescr)
Returns the main class that should be executed.protected void
massageDescriptor()
-
Methods inherited from class org.glassfish.appclient.client.acc.AppClientInfo
classContainsAnnotation, close, completeInit, deleteAppClientDir, descriptorContainsPURefcs, getAppClient, getAppClient, getAppClientRoot, getClassLoader, getClassPaths, getDescriptor, getEntryAsUrl, getLocalString, handlePersistenceUnitDependency, setDescriptor, toString
-
-
-
-
Constructor Detail
-
ClassFileAppClientInfo
protected ClassFileAppClientInfo(boolean isJWS, Logger logger, String mainClassFromCommandLine, String classFileFromCommandLine)
Creates a new instance of the class file app client info.- Parameters:
isJWS
- whether Java Web Start was used to launch the app clientlogger
- the Logger available for writing log messagesarchive
- the archive containing the app client (and perhaps other files as well)archivist
- the archivist appropriate to the type of archive being processedmainClassFromCommandLine
- the main class command-line argument valueclassFileFromCommandLine
- the class file name from the command line arguments
-
-
Method Detail
-
getMainClassNameToRun
protected String getMainClassNameToRun(ApplicationClientDescriptor acDescr)
Description copied from class:AppClientInfo
Returns the main class that should be executed.- Overrides:
getMainClassNameToRun
in classAppClientInfo
- Returns:
- the name of the main class to execute when the client starts
-
massageDescriptor
protected void massageDescriptor() throws IOException, AnnotationProcessorException
- Overrides:
massageDescriptor
in classAppClientInfo
- Throws:
IOException
AnnotationProcessorException
-
-