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 protectedClassFileAppClientInfo(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 StringgetMainClassNameToRun(ApplicationClientDescriptor acDescr)Returns the main class that should be executed.protected voidmassageDescriptor()-
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:AppClientInfoReturns the main class that should be executed.- Overrides:
getMainClassNameToRunin classAppClientInfo- Returns:
- the name of the main class to execute when the client starts
-
massageDescriptor
protected void massageDescriptor() throws IOException, AnnotationProcessorException- Overrides:
massageDescriptorin classAppClientInfo- Throws:
IOExceptionAnnotationProcessorException
-
-