public interface RegisterableService
ServiceRegistry注册提供。如果这个接口是目前,登记和注销登记的通知将被执行。
ServiceRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
onDeregistration(ServiceRegistry registry, 类<?> category)
当实现此接口的对象是从给定的
registry
category删除。
|
void |
onRegistration(ServiceRegistry registry, 类<?> category)
当实现此接口的对象添加到给定的
registry
category。
|
void onRegistration(ServiceRegistry registry, 类<?> category)
registry
category。该对象可能已经在另一个类别或类别中注册。
registry -
ServiceRegistry该对象已被注册。
category -
类指示下注册表类此对象已注册。
void onDeregistration(ServiceRegistry registry, 类<?> category)
registry
category删除。该对象可能仍然在另一个类别或类别中注册。
registry -
ServiceRegistry从该对象被(全部或部分)注销。
category -
类指示注册表类的对象被注销。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.