Package com.twelvemonkeys.util.service
Interface RegisterableService
-
public interface RegisterableService
An 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 $
- Author:
- Harald Kuhr
- See Also:
ServiceRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onDeregistration(ServiceRegistry pRegistry, java.lang.Class pCategory)
Called right after this service provider object is removed from the given category of the givenServiceRegistry
.void
onRegistration(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
- theServiceRegistry
this
was added topCategory
- the categorythis
was 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
- theServiceRegistry
this
was added topCategory
- the categorythis
was added to
-
-