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 ArchivistFactory
archivistFactory
-
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 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()
-
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:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
completeInit
protected void completeInit() throws Exception
Finishes initialization work.The calling logic that instantiates this object must invoke completeInit after instantiation but before using the object.
- Overrides:
completeInit
in 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, AnnotationProcessorException
Adjusts 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:
massageDescriptor
in classAppClientInfo
- Throws:
IOException
AnnotationProcessorException
-
close
protected void close() throws IOException
Closes the instance of AppClientInfo, deleting any temporary directory created and closing the archive.- Overrides:
close
in 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:
classContainsAnnotation
in classAppClientInfo
- Throws:
FileNotFoundException
IOException
-
toString
public String toString()
- Overrides:
toString
in classAppClientInfo
-
-