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 $
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDeregistration
(ServiceRegistry pRegistry, Class pCategory) Called right after this service provider object is removed from the given category of the givenServiceRegistry
.void
onRegistration
(ServiceRegistry pRegistry, Class pCategory) Called right after this service provider object is added to the given category of the givenServiceRegistry
.
-
Method Details
-
onRegistration
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
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
-