|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.basher.Basher
public class Basher
Main entry point to the Basher when using the command line mode or for applications not using Gaderian.
| Constructor Summary | |
|---|---|
Basher()
|
|
| Method Summary | ||
|---|---|---|
static void |
fireCleanUpThread()
Convenience method to be used when a thread cleanup of the registry should happen. |
|
static org.ops4j.gaderian.Registry |
getRegistry()
Retrieves the registry used by Basher |
|
static
|
getService(Class<T> service)
Retrieves a service from the Basher (Gaderian) registry. |
|
static void |
setRegistry(org.ops4j.gaderian.Registry registry)
Sets the registry this Basher instance should use. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Basher()
| Method Detail |
|---|
public static void setRegistry(org.ops4j.gaderian.Registry registry)
registry - The Gaderian registry to use.
IllegalArgumentException - If the registry has already been set.public static org.ops4j.gaderian.Registry getRegistry()
IllegalStateException - If the registry has not been set.public static void fireCleanUpThread()
public static <T> T getService(Class<T> service)
throws Exception
service - The class of the service to retrieve.
Exception - If the registry fails to intialize or the service does not exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||