|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.peaberry.util.DelegatingImport<T>
public abstract class DelegatingImport<T>
A simple Import that always delegates to another Import.
| Constructor Summary | |
|---|---|
protected |
DelegatingImport(Import<T> service)
Create a new Import that delegates to the given Import. |
| Method Summary | |
|---|---|
Map<String,?> |
attributes()
Get the attributes associated with the service. |
boolean |
available()
Is the service instance available? |
T |
get()
Start using the imported service instance. |
void |
unget()
Stop using the imported service instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DelegatingImport(Import<T> service)
Import that delegates to the given Import.
service - delegate service| Method Detail |
|---|
public T get()
Import
get in interface Import<T>public Map<String,?> attributes()
Import
attributes in interface Import<T>public void unget()
Import
unget in interface Import<T>public boolean available()
Import
available in interface Import<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||