Package com.twelvemonkeys.util.service
Interface RegisterableService
-
public interface RegisterableServiceAn optional interface that may be implemented by service provider objects.If this interface is implemented, the service provider objects will receive notification of registration and deregistration from the
ServiceRegistry.- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/service/RegisterableService.java#1 $
- See Also:
ServiceRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDeregistration(ServiceRegistry pRegistry, java.lang.Class pCategory)Called right after this service provider object is removed from the given category of the givenServiceRegistry.voidonRegistration(ServiceRegistry pRegistry, java.lang.Class pCategory)Called right after this service provider object is added to the given category of the givenServiceRegistry.
-
-
-
Method Detail
-
onRegistration
void onRegistration(ServiceRegistry pRegistry, java.lang.Class pCategory)
Called right after this service provider object is added to the given category of the givenServiceRegistry.- Parameters:
pRegistry- theServiceRegistrythiswas added topCategory- the categorythiswas added to
-
onDeregistration
void onDeregistration(ServiceRegistry pRegistry, java.lang.Class pCategory)
Called right after this service provider object is removed from the given category of the givenServiceRegistry.- Parameters:
pRegistry- theServiceRegistrythiswas added topCategory- the categorythiswas added to
-
-