|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceChangeListener
Allow a service to be notified when other services change. This is useful for keeping an eye on changing providers, filters, and other services which drop in and out.
| Method Summary | |
|---|---|
Class<?>[] |
notifyForTypes()
Allows filtering so that notifications are only sent when classes implement one of the types specified. |
void |
serviceRegistered(String serviceName,
Object service,
List<Class<?>> implementedTypes)
This will be called when services are newly registered with the service manager. |
void |
serviceUnregistered(String serviceName,
Object service)
This will be called when services are removed from the service manager. |
| Method Detail |
|---|
Class<?>[] notifyForTypes()
Just return null or empty array to be notified for all service registrations.
void serviceRegistered(String serviceName,
Object service,
List<Class<?>> implementedTypes)
It is not called until the service is fully initialized. It is called once and only once per service that is registered.
serviceName - the name of the serviceservice - the service beanimplementedTypes - a list of all the class types which this service implements
void serviceUnregistered(String serviceName,
Object service)
serviceRegistered(String, Object, List).
It is called immediately before the service is completely destroyed so that the service object is still valid.
serviceName - the name of the serviceservice - the service bean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||