|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher
org.ow2.jasmine.monitoring.mbeancmd.osgi.CommandDispatcher
public class CommandDispatcher
This is the main class of the archive. It dispatches the processing of the command to the right class. The available commands in the current archive are retrieved by introspection of the archive.
| Constructor Summary | |
|---|---|
CommandDispatcher()
|
|
| Method Summary | |
|---|---|
protected java.io.InputStreamReader |
getInputStreamReader(java.lang.String name)
Return an inputStreamReader for the specified resource, by using the bundle context. |
protected java.lang.Class<?> |
loadClass(java.lang.String cname)
Load and return a class for a given class name, by using the bundle context. |
static void |
removeContext()
Delete the reference to the bundle context. |
static void |
setContext(org.osgi.framework.BundleContext context)
Set a bundle context |
| Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.CommandDispatcher |
|---|
getAvailableCommands, getCommand, init, isEmbedded, isOSGiEnabled, main, setEmbedded, setOSGiEnabled, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandDispatcher()
| Method Detail |
|---|
public static void setContext(org.osgi.framework.BundleContext context)
context - bundle contextpublic static void removeContext()
protected java.io.InputStreamReader getInputStreamReader(java.lang.String name)
throws java.io.IOException
getInputStreamReader in class org.ow2.jasmine.monitoring.mbeancmd.CommandDispatchername - the resource name
java.io.IOException - if an I/O exception occurs
protected java.lang.Class<?> loadClass(java.lang.String cname)
throws java.lang.ClassNotFoundException
loadClass in class org.ow2.jasmine.monitoring.mbeancmd.CommandDispatchercname - a class name
java.lang.ClassNotFoundException - if the class cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||