Class StandAloneAppClientInfo
- java.lang.Object
-
- org.glassfish.appclient.client.acc.AppClientInfo
-
- org.glassfish.appclient.client.acc.StandAloneAppClientInfo
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
@Service public class StandAloneAppClientInfo extends AppClientInfo implements org.glassfish.hk2.api.PostConstruct
Represents an app client that is in a stand-alone archive, not inside an enterprise app archive and not a .class file.- Author:
- tjquinn
-
-
Field Summary
Fields Modifier and Type Field Description protected ArchivistFactoryarchivistFactory-
Fields inherited from class org.glassfish.appclient.client.acc.AppClientInfo
_keepExplodedDir, _logger, isJWS, mainClassFromCommandLine, mainClassNameToRun, USER_CODE_IS_SIGNED_PROPERTYNAME
-
-
Constructor Summary
Constructors Constructor Description StandAloneAppClientInfo(boolean isJWS, Logger logger, ReadableArchive archive, String mainClassFromCommandLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanappClientDependsOnPersistenceUnit(ApplicationClientDescriptor acDescr)Reports whether the selected app client depends on a persistence unit or not.protected booleanclassContainsAnnotation(String entry, AnnotationDetector detector, ReadableArchive archive, ApplicationClientDescriptor descriptor)protected voidclose()Closes the instance of AppClientInfo, deleting any temporary directory created and closing the archive.protected voidcompleteInit()Finishes initialization work.protected voidfixupWSDLEntries()Adjusts the web services WSDL entries corresponding to where they actually reside.protected booleanmainClassContainsPURefcAnnotations(ApplicationClientDescriptor acDescr)protected voidmassageDescriptor()voidpostConstruct()StringtoString()-
Methods inherited from class org.glassfish.appclient.client.acc.AppClientInfo
deleteAppClientDir, descriptorContainsPURefcs, getAppClient, getAppClient, getAppClientRoot, getClassLoader, getClassPaths, getDescriptor, getEntryAsUrl, getLocalString, getMainClassNameToRun, handlePersistenceUnitDependency, setDescriptor
-
-
-
-
Field Detail
-
archivistFactory
@Inject protected ArchivistFactory archivistFactory
-
-
Constructor Detail
-
StandAloneAppClientInfo
public StandAloneAppClientInfo(boolean isJWS, Logger logger, ReadableArchive archive, String mainClassFromCommandLine) throws IOException, ClassNotFoundException, URISyntaxException, SAXParseException
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
completeInit
protected void completeInit() throws ExceptionFinishes initialization work.The calling logic that instantiates this object must invoke completeInit after instantiation but before using the object.
- Overrides:
completeInitin classAppClientInfo- Throws:
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
-
fixupWSDLEntries
protected void fixupWSDLEntries() throws URISyntaxException, MalformedURLException, IOException, AnnotationProcessorExceptionAdjusts the web services WSDL entries corresponding to where they actually reside.
-
appClientDependsOnPersistenceUnit
protected boolean appClientDependsOnPersistenceUnit(ApplicationClientDescriptor acDescr) throws MalformedURLException, ClassNotFoundException, IOException, URISyntaxException
Reports whether the selected app client depends on a persistence unit or not.
-
mainClassContainsPURefcAnnotations
protected boolean mainClassContainsPURefcAnnotations(ApplicationClientDescriptor acDescr) throws MalformedURLException, ClassNotFoundException, IOException, URISyntaxException
-
massageDescriptor
protected void massageDescriptor() throws IOException, AnnotationProcessorException- Overrides:
massageDescriptorin classAppClientInfo- Throws:
IOExceptionAnnotationProcessorException
-
close
protected void close() throws IOExceptionCloses the instance of AppClientInfo, deleting any temporary directory created and closing the archive.- Overrides:
closein classAppClientInfo- Throws:
IOException- in case of error closing the archive
-
classContainsAnnotation
protected boolean classContainsAnnotation(String entry, AnnotationDetector detector, ReadableArchive archive, ApplicationClientDescriptor descriptor) throws FileNotFoundException, IOException
- Overrides:
classContainsAnnotationin classAppClientInfo- Throws:
FileNotFoundExceptionIOException
-
toString
public String toString()
- Overrides:
toStringin classAppClientInfo
-
-