@Service public class ApplicationFactory extends Object
| Constructor and Description |
|---|
ApplicationFactory() |
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplicationFromStandardDD(ReadableArchive archive,
String archiveType)
This method creates an Application object from reading the
standard deployment descriptor.
|
String |
getApplicationName(File jarFile) |
Application |
openArchive(Archivist archivist,
ReadableArchive in,
boolean handleRuntimeInfo)
Open a jar file and return an application object for the modules contained
in the archive.
|
Application |
openArchive(Archivist archivist,
URI jarFile,
boolean handleRuntimeInfo)
Open a jar file and return an application object for the modules contained
in the archive/directory.
|
Application |
openArchive(String appName,
Archivist archivist,
ReadableArchive in,
boolean handleRuntimeInfo)
Open a jar file and return an application object for the modules contained
in the archive.
|
Application |
openArchive(URI jarFile,
String archiveType)
Open a jar file and return an application object for the modules contained
in the archive.
|
Application |
openArchive(URI jarFile,
String archiveType,
boolean handleRuntimeInfo)
Open a jar file with the default Archivists and return an application
object for the modules contained in the archive.
|
Application |
openWith(Application application,
ReadableArchive archive,
Archivist archivist)
This method populates the rest of the Application object from the
previous standard deployment descriptor reading
|
protected static final Logger logger
public Application openArchive(URI jarFile, String archiveType) throws IOException, SAXParseException
jarFile - the archive fileIOExceptionSAXParseExceptionpublic Application openArchive(Archivist archivist, URI jarFile, boolean handleRuntimeInfo) throws IOException, SAXParseException
archivist - to use to open the archive filejarFile - the archive filehandleRuntimeInfo - set to true to read configuration deployment descriptorsIOExceptionSAXParseExceptionpublic Application openArchive(Archivist archivist, ReadableArchive in, boolean handleRuntimeInfo) throws IOException, SAXParseException
archivist - to use to open the archive filein - the archive abstractionhandleRuntimeInfo - true to read configuration deployment descriptorsIOExceptionSAXParseExceptionpublic Application openArchive(String appName, Archivist archivist, ReadableArchive in, boolean handleRuntimeInfo) throws IOException, SAXParseException
appName - the application moduleIDarchivist - to use to open the archive filein - the input archivehandleRuntimeInfo - set to true to read configuration deployment descriptorsIOExceptionSAXParseExceptionpublic Application createApplicationFromStandardDD(ReadableArchive archive, String archiveType) throws IOException, SAXParseException
archive - the archive for the applicationIOExceptionSAXParseExceptionpublic Application openWith(Application application, ReadableArchive archive, Archivist archivist) throws IOException, SAXParseException
archive - the archive for the applicationIOExceptionSAXParseExceptionpublic Application openArchive(URI jarFile, String archiveType, boolean handleRuntimeInfo) throws IOException, SAXParseException
jarFile - the archive filehandleRuntimeInfo - set to true to read configuration deployment descriptorsIOExceptionSAXParseExceptionpublic String getApplicationName(File jarFile) throws IOException
jarFile - the .ear fileIOExceptionCopyright © 2019. All rights reserved.