public class DSTestWiring extends 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(Class<T> type) |
DSTestWiring.Component<?> |
add(String cname)
Add the class by name.
|
<T> DSTestWiring.Component<T> |
add(T instance) |
<T> T |
get(Class<T> c) |
void |
setContext(org.osgi.framework.BundleContext context) |
void |
wire() |
public void setContext(org.osgi.framework.BundleContext context)
public <T> DSTestWiring.Component<T> add(Class<T> type) throws Exception
Exceptionpublic DSTestWiring.Component<?> add(String cname) throws ClassNotFoundException, Exception
cname - the name of the classClassNotFoundException - if not foundException - if something goes wrongpublic <T> DSTestWiring.Component<T> add(T instance) throws Exception
Exceptionpublic <T> T get(Class<T> c)
Copyright © 2019 aQute SARL. All rights reserved.