|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.peaberry.util.SimpleExport<T>
public class SimpleExport<T>
A basic mutable Export derived from a single dynamic Import.
| Constructor Summary | |
|---|---|
SimpleExport(Import<T> service)
Create a new Export from the given Import. |
|
| Method Summary | |
|---|---|
Map<String,?> |
attributes()
Get the attributes associated with the service. |
void |
attributes(Map<String,?> newAttributes)
Update the attributes associated with the exported service. |
boolean |
available()
Is the service instance available? |
T |
get()
Start using the imported service instance. |
void |
put(T newInstance)
Replace the exported service with the given instance. |
void |
unget()
Stop using the imported service instance. |
void |
unput()
Remove the exported service from the ServiceWatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleExport(Import<T> service)
Export from the given Import.
service - service being exported| 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>public void put(T newInstance)
Export
put in interface Export<T>newInstance - service instancepublic void attributes(Map<String,?> newAttributes)
Export
attributes in interface Export<T>newAttributes - service attributespublic void unput()
ExportServiceWatcher.
unput in interface Export<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||