public final class JaveleonModule extends Module
Module.PackageExport
Modifier and Type | Field and Description |
---|---|
static boolean |
isJaveleonPresent |
classloader, events, mgr, PROP_CLASS_LOADER, PROP_MANIFEST, PROP_PROBLEMS, PROP_RELOADABLE, PROP_VALID, reloadable
PROP_ENABLED
Constructor and Description |
---|
JaveleonModule(ModuleManager mgr,
File jar,
Object history,
Events ev) |
Modifier and Type | Method and Description |
---|---|
protected void |
classLoaderDown()
Turn off the classloader and release all resources.
|
void |
classLoaderUp(Set<Module> parents)
public for use from JaveleonModuleReloader
|
protected void |
cleanup()
Should be called after turning off the classloader of one or more modules & GC'ing.
|
protected ClassLoader |
createNewClassLoader(List<File> classp,
List<ClassLoader> parents)
Setup a new module with the given class path and the set of parent
class loaders.
|
void |
destroy()
Notify the module that it is being deleted.
|
List<File> |
getAllJars()
Get all JARs loaded by this module.
|
File |
getJarFile()
Get the JAR this module is packaged in.
|
Object |
getLocalizedAttribute(String attr)
Get a localized attribute.
|
Manifest |
getManifest()
Get the JAR manifest.
|
protected ClassLoader |
getParentLoader(Module parent)
Get the class loader of a particular parent module.
|
static boolean |
incrementGlobalId() |
boolean |
isFixed()
Fixed modules are treated differently.
|
void |
releaseManifest()
Release memory storage for the JAR manifest, if applicable.
|
void |
reload()
Reload this module.
|
void |
setReloadable(boolean r)
Set whether this module is supposed to be reloadable.
|
String |
toString()
String representation for debugging.
|
findResources, getAttribute, getBuildVersion, getClassLoader, getCodeName, getCodeNameBase, getCodeNameRelease, getDependencies, getDependenciesArray, getHistory, getImplementationVersion, getManager, getProblems, getProvides, getPublicPackages, getSpecificationVersion, getStartLevel, isAutoload, isEager, isEnabled, isNetigso, isReloadable, isValid, owns, parseManifest, provides
addPropertyChangeListener, firePropertyChange, getDisplayName, removePropertyChangeListener
public JaveleonModule(ModuleManager mgr, File jar, Object history, Events ev) throws IOException
IOException
public static boolean incrementGlobalId()
protected ClassLoader createNewClassLoader(List<File> classp, List<ClassLoader> parents)
public void classLoaderUp(Set<Module> parents) throws IOException
IOException
protected ClassLoader getParentLoader(Module parent)
public String toString()
protected void classLoaderDown()
public final void reload() throws IOException
IOException
protected void cleanup()
public void destroy()
public Manifest getManifest()
Module
getManifest
in class Module
public void releaseManifest()
Module
releaseManifest
in class Module
public Object getLocalizedAttribute(String attr)
getLocalizedAttribute
in class ModuleInfo
public boolean isFixed()
Module
public File getJarFile()
getJarFile
in class Module
isFixed()
public List<File> getAllJars()
getAllJars
in class Module
List<File>
of JARspublic void setReloadable(boolean r)
setReloadable
in class Module
r
- whether the module should be considered reloadable