@Service public abstract class AppClientInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
_keepExplodedDir |
protected Logger |
_logger
logger
|
protected boolean |
isJWS
indicates if the app client has been launched using Java Web Start
|
protected String |
mainClassFromCommandLine
main class name as the user specified it on the command line
|
protected String |
mainClassNameToRun
main class to be used - could come from the command line or from the
manifest of the selected app client archive
|
static String |
USER_CODE_IS_SIGNED_PROPERTYNAME |
| Constructor and Description |
|---|
AppClientInfo(boolean isJWS,
Logger logger,
String mainClassFromCommandLine)
Creates a new AppClientInfo for a main class file.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
classContainsAnnotation(String entry,
AnnotationDetector detector,
ReadableArchive archive,
ApplicationClientDescriptor descriptor) |
protected void |
close() |
protected void |
completeInit() |
protected boolean |
deleteAppClientDir() |
protected boolean |
descriptorContainsPURefcs(ApplicationClientDescriptor descr)
Reports whether the app client's descriptor shows a dependence on a
persistence unit.
|
protected ApplicationClientDescriptor |
getAppClient()
Returns the app client descriptor to be run.
|
protected ApplicationClientDescriptor |
getAppClient(Archivist archivist) |
protected String |
getAppClientRoot(ReadableArchive archive,
ApplicationClientDescriptor descriptor) |
protected ClassLoader |
getClassLoader() |
protected List<String> |
getClassPaths(ReadableArchive archive) |
protected ApplicationClientDescriptor |
getDescriptor() |
protected static URL |
getEntryAsUrl(File moduleLocation,
String uri)
Reports whether the main class in the archive contains annotations that
refer to persistence units.
|
protected String |
getLocalString(String key,
String defaultMessage,
Object... args) |
protected String |
getMainClassNameToRun(ApplicationClientDescriptor acDescr)
Returns the main class that should be executed.
|
protected void |
handlePersistenceUnitDependency()
Processes persistence unit handling for the ACC.
|
protected void |
massageDescriptor() |
protected void |
setDescriptor(ApplicationClientDescriptor acDesc) |
String |
toString() |
public static final String USER_CODE_IS_SIGNED_PROPERTYNAME
protected Logger _logger
protected String mainClassFromCommandLine
protected String mainClassNameToRun
protected boolean isJWS
protected static final boolean _keepExplodedDir
protected void setDescriptor(ApplicationClientDescriptor acDesc)
protected ApplicationClientDescriptor getDescriptor()
protected ApplicationClientDescriptor getAppClient()
protected ClassLoader getClassLoader()
protected void close()
throws IOException
IOExceptionprotected boolean deleteAppClientDir()
protected void handlePersistenceUnitDependency()
throws URISyntaxException,
MalformedURLException
protected boolean descriptorContainsPURefcs(ApplicationClientDescriptor descr)
descr - the descriptor for the app client in questionprotected static URL getEntryAsUrl(File moduleLocation, String uri) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionprotected ApplicationClientDescriptor getAppClient(Archivist archivist)
protected String getAppClientRoot(ReadableArchive archive, ApplicationClientDescriptor descriptor)
protected void massageDescriptor()
throws IOException,
AnnotationProcessorException
protected List<String> getClassPaths(ReadableArchive archive)
protected String getMainClassNameToRun(ApplicationClientDescriptor acDescr)
protected boolean classContainsAnnotation(String entry, AnnotationDetector detector, ReadableArchive archive, ApplicationClientDescriptor descriptor) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2019. All rights reserved.