|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.NetigsoFramework
public abstract class NetigsoFramework
This class contains abstracted calls to OSGi provided by core.netigso module. No other module can implement this class, except core.netigso.
| Constructor Summary | |
|---|---|
protected |
NetigsoFramework()
|
| Method Summary | |
|---|---|
protected ClassLoader |
createClassLoader(String cnb)
Creates a delegating loader for given module. |
protected abstract Set<String> |
createLoader(ModuleInfo m,
ProxyClassLoader pcl,
File jar)
Initializes a classloader for given module. |
protected int |
defaultStartLevel()
Default start level for all bundles that don't specify any own. |
protected ClassLoader |
findFrameworkClassLoader()
Allows the OSGi support to identify the classloader that loads all OSGi framework classes. |
protected Module |
findModule(String cnb)
Finds module for given name. |
protected Enumeration<URL> |
findResources(Module module,
String resName)
Find given resource inside provide module representing an OSGi bundle. |
protected byte[] |
fromArchive(ArchiveResources resources,
String name)
Get an array of bytes from archive. |
protected abstract void |
prepare(Lookup loadFrameworkFrom,
Collection<? extends Module> preregister)
Starts the framework. |
protected abstract void |
reload(Module m)
Reloads one module |
protected abstract void |
shutdown()
Shutdowns the framework |
protected abstract void |
start()
Starts the OSGi framework by activating all bundles that shall be activated. |
protected abstract Set<String> |
start(Collection<? extends Module> allModules)
Get's ready for start of the OSGi framework. |
protected abstract void |
stopLoader(ModuleInfo m,
ClassLoader loader)
Deinitializes a classloader for given module |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NetigsoFramework()
| Method Detail |
|---|
protected abstract void prepare(Lookup loadFrameworkFrom,
Collection<? extends Module> preregister)
protected abstract Set<String> start(Collection<? extends Module> allModules)
allModules - the modules that are in the system
protected abstract void start()
protected abstract void shutdown()
protected abstract Set<String> createLoader(ModuleInfo m,
ProxyClassLoader pcl,
File jar)
throws IOException
pcl - proxy classloader that shall be configuredjar - the module JAR file
IOException
protected Enumeration<URL> findResources(Module module,
String resName)
Bundle.getEntry.
resName - name of the resource to seek for
protected abstract void reload(Module m)
throws IOException
IOException
protected abstract void stopLoader(ModuleInfo m,
ClassLoader loader)
protected ClassLoader findFrameworkClassLoader()
protected int defaultStartLevel()
protected final byte[] fromArchive(ArchiveResources resources,
String name)
throws IOException
#toArchive(java.lang.String, java.lang.String)
method to store it for next time.
name - name of the resource inside the JAR
IOException - if something goes wrongprotected final ClassLoader createClassLoader(String cnb)
cnb - name of the bundle/module
protected final Module findModule(String cnb)
cnb - code name base of the module
|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||