public abstract class JarFactory
extends java.lang.Object
| Constructor and Description |
|---|
JarFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JarFactory |
getInstance()
Get the created instance of the jar factory.
|
abstract java.util.ArrayList<java.lang.String> |
getModuleJars()
Get the list of all jar files in the modules folder.
|
abstract java.util.ArrayList<java.lang.String> |
getServiceJars()
Get the list of all jar files in the services folder.
|
abstract FileObject |
jarToFile(java.lang.String sourceFile)
Read the contents of the jar file into a
FileObject and return. |
static void |
removeJarFactory(java.lang.String thisFactoryKey)
Remove the current jar factory by re-setting it to null.
|
abstract java.lang.String |
saveJarFile(FileObject fileObject)
Save the contents of the
FileObject to the default services location. |
static void |
setJarFactory(JarFactory thisJarFactory,
java.lang.String thisFactoryKey)
Set the instance of the jar factory to be used.
|
public static JarFactory getInstance()
public static void setJarFactory(JarFactory thisJarFactory, java.lang.String thisFactoryKey)
thisJarFactory - the jar factory that is retrieved for any method call.thisFactoryKey - a key to protect dynamic changing of the factory.public static void removeJarFactory(java.lang.String thisFactoryKey)
thisFactoryKey - a key to protect dynamic changing of the factory.public abstract java.util.ArrayList<java.lang.String> getServiceJars()
throws java.lang.Exception
java.lang.Exception - any error.public abstract java.util.ArrayList<java.lang.String> getModuleJars()
throws java.lang.Exception
java.lang.Exception - any error.public abstract FileObject jarToFile(java.lang.String sourceFile) throws java.lang.Exception
FileObject and return.sourceFile - the file path to the jar file.java.lang.Exception - any error.public abstract java.lang.String saveJarFile(FileObject fileObject) throws java.lang.Exception
FileObject to the default services location.fileObject - the file object with the file contents.java.lang.Exception - any error.