public class DSTestWiring
extends java.lang.Object
TODO add the OSGi Annotations and support more options. needs cleanup
| Modifier and Type | Class and Description |
|---|---|
class |
DSTestWiring.Component<T>
A representation of a component.
|
static class |
DSTestWiring.Reference |
| Constructor and Description |
|---|
DSTestWiring() |
| Modifier and Type | Method and Description |
|---|---|
<T> DSTestWiring.Component<T> |
add(java.lang.Class<T> type) |
DSTestWiring.Component<?> |
add(java.lang.String cname)
Add the class by name.
|
<T> DSTestWiring.Component<T> |
add(T instance) |
<T> T |
get(java.lang.Class<T> c) |
void |
setContext(org.osgi.framework.BundleContext context) |
void |
wire() |
public void setContext(org.osgi.framework.BundleContext context)
public void wire()
throws java.lang.Exception
java.lang.Exceptionpublic <T> DSTestWiring.Component<T> add(java.lang.Class<T> type) throws java.lang.Exception
java.lang.Exceptionpublic DSTestWiring.Component<?> add(java.lang.String cname) throws java.lang.ClassNotFoundException, java.lang.Exception
cname - the name of the classjava.lang.ClassNotFoundException - if not foundjava.lang.Exception - if something goes wrongpublic <T> DSTestWiring.Component<T> add(T instance) throws java.lang.Exception
java.lang.Exceptionpublic <T> T get(java.lang.Class<T> c)