-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
None
ServiceListeners have been deprecated long time ago but there's no suitable
alternative available yet to cover use cases still present in WildFly code base.
ServiceListener was deprecated for two reasons:
- it exposes state machine implementation details to the users
- it causes non zero performance overheads
However there are still valid requirements for service notifications when service enters one of UP, DOWN, FAILED or REMOVED state.
Proposed solution is to introduce new LifecycleListener interface & LifecycleEvent enum.
LifecycleListener
- will be documented as migration path for deprecated ServiceListeners
- will provide single void handleEvent(ServiceController<?> controller, LifecycleEvent event) method
- will hide MSC state machine internals to users
- will fix performance issue of deprecated ServiceListeners
LifecycleEvent will hold only four values: REMOVED, DOWN, FAILED & UP
- relates to
-
JBEAP-14901 [GSS](7.1.z) ClassLoader leak in org.jboss.el.cache.FactoryFinderCache
- Closed