org.ops4j.peaberry
Interface Export<T>

All Superinterfaces:
Import<T>
All Known Implementing Classes:
SimpleExport

public interface Export<T>
extends Import<T>

Handle to a service instance exported to a ServiceWatcher.

Author:
mcculls@gmail.com (Stuart McCulloch)

Method Summary
 void attributes(Map<String,?> attributes)
          Update the attributes associated with the exported service.
 void put(T instance)
          Replace the exported service with the given instance.
 void unput()
          Remove the exported service from the ServiceWatcher.
 
Methods inherited from interface org.ops4j.peaberry.Import
attributes, available, get, unget
 

Method Detail

put

void put(T instance)
Replace the exported service with the given instance.

Parameters:
instance - service instance

attributes

void attributes(Map<String,?> attributes)
Update the attributes associated with the exported service.

Parameters:
attributes - service attributes

unput

void unput()
Remove the exported service from the ServiceWatcher.



Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.