|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.core.startup.ModuleSystem
public final class ModuleSystem
Controller of the IDE's whole module system. Contains higher-level convenience methods to access the basic functionality and procedural stages of the module system. Main should hold a reference to one instance. Methods are thread-safe.
| Constructor Summary | |
|---|---|
ModuleSystem(FileSystem systemFileSystem)
Initialize module system. |
|
| Method Summary | |
|---|---|
String |
getEffectiveClasspath(Module m)
Get the effective "classpath" used by a module. |
Events |
getEvents()
Get the event-logging handler. |
ModuleManager |
getManager()
Get the raw module manager. |
List<File> |
getModuleJars()
Produce a list of JAR files including all installed modules, their extensions, and enabled locale variants of both. |
boolean |
isShowInAutoUpdateClient(ModuleInfo mi)
Checks whether the provided module will be visible in autoupdate client. |
void |
loadBootModules()
Load modules found in the classpath. |
void |
readList()
Read disk settings and determine what the known modules are. |
void |
refresh()
Refreshes the list of modules. |
void |
restore()
Install read modules. |
boolean |
shutDown(Runnable midHook)
Shut down the system: ask modules to shut down. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleSystem(FileSystem systemFileSystem)
throws IOException
IOException| Method Detail |
|---|
public ModuleManager getManager()
public Events getEvents()
public List<File> getModuleJars()
public void loadBootModules()
public final void refresh()
public void readList()
public void restore()
public boolean shutDown(Runnable midHook)
public String getEffectiveClasspath(Module m)
This is a somewhat stretched notion, but should give something that looks as much like a classpath as possible, i.e. a list of directories or JARs separated by the standard separator, which roughly represents what resources are visible to the module's classloader. May use special syntax to represent situations in which only certain packages are available from a particular "classpath" entry.
Disabled modules have no classpath (empty string).
Call within a mutex.
m - the module to build a classpath for
public boolean isShowInAutoUpdateClient(ModuleInfo mi)
true.
Uses caches to remember the value between restarts.
mi - the module to test
true if the module is supposed to be visible in
autoupdate client
|
org.netbeans.core.startup/1 1.40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||