@Service public class StandAloneAppClientInfo extends AppClientInfo implements org.glassfish.hk2.api.PostConstruct
Modifier and Type | Field and Description |
---|---|
protected ArchivistFactory |
archivistFactory |
_keepExplodedDir, _logger, isJWS, mainClassFromCommandLine, mainClassNameToRun, USER_CODE_IS_SIGNED_PROPERTYNAME
Constructor and Description |
---|
StandAloneAppClientInfo(boolean isJWS,
Logger logger,
ReadableArchive archive,
String mainClassFromCommandLine) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
appClientDependsOnPersistenceUnit(ApplicationClientDescriptor acDescr)
Reports whether the selected app client depends on a persistence unit
or not.
|
protected boolean |
classContainsAnnotation(String entry,
AnnotationDetector detector,
ReadableArchive archive,
ApplicationClientDescriptor descriptor) |
protected void |
close()
Closes the instance of AppClientInfo, deleting any temporary directory
created and closing the archive.
|
protected void |
completeInit()
Finishes initialization work.
|
protected void |
fixupWSDLEntries()
Adjusts the web services WSDL entries corresponding to where they
actually reside.
|
protected boolean |
mainClassContainsPURefcAnnotations(ApplicationClientDescriptor acDescr) |
protected void |
massageDescriptor() |
void |
postConstruct() |
String |
toString() |
deleteAppClientDir, descriptorContainsPURefcs, getAppClient, getAppClient, getAppClientRoot, getClassLoader, getClassPaths, getDescriptor, getEntryAsUrl, getLocalString, getMainClassNameToRun, handlePersistenceUnitDependency, setDescriptor
@Inject protected ArchivistFactory archivistFactory
public StandAloneAppClientInfo(boolean isJWS, Logger logger, ReadableArchive archive, String mainClassFromCommandLine) throws IOException, ClassNotFoundException, URISyntaxException, SAXParseException
public void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
protected void completeInit() throws Exception
The calling logic that instantiates this object must invoke completeInit after instantiation but before using the object.
completeInit
in class AppClientInfo
IOException
- for errors opening the expanded archiveSAXParseException
- for errors parsing the descriptors in a newly-opened archiveClassNotFoundException
- if the main class requested cannot be located in the archiveURISyntaxException
- if preparing URIs for the class loader failsException
protected void fixupWSDLEntries() throws URISyntaxException, MalformedURLException, IOException, AnnotationProcessorException
protected boolean appClientDependsOnPersistenceUnit(ApplicationClientDescriptor acDescr) throws MalformedURLException, ClassNotFoundException, IOException, URISyntaxException
protected boolean mainClassContainsPURefcAnnotations(ApplicationClientDescriptor acDescr) throws MalformedURLException, ClassNotFoundException, IOException, URISyntaxException
protected void massageDescriptor() throws IOException, AnnotationProcessorException
massageDescriptor
in class AppClientInfo
IOException
AnnotationProcessorException
protected void close() throws IOException
close
in class AppClientInfo
IOException
- in case of error closing the archiveprotected boolean classContainsAnnotation(String entry, AnnotationDetector detector, ReadableArchive archive, ApplicationClientDescriptor descriptor) throws FileNotFoundException, IOException
classContainsAnnotation
in class AppClientInfo
FileNotFoundException
IOException
public String toString()
toString
in class AppClientInfo
Copyright © 2018. All rights reserved.