Interface DeferredServiceable
- All Known Implementing Classes:
MigrationEngine
public interface DeferredServiceable
Just like a
Unlike a standard
The drawback is that it cannot use other components during initialization.
This interface is mainly used to avoid circular dependencies during initialization.
Serviceable, a DeferredServiceable is a component that need to connect to other components. Unlike a standard
Serviceable, which Serviceable.service(ServiceManager) method is called during component initialization,
the deferredService(ServiceManager) method of a DeferredServiceable is called *after* component initialization.The drawback is that it cannot use other components during initialization.
This interface is mainly used to avoid circular dependencies during initialization.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.
-
Method Details
-
deferredService
Pass theServiceManagerused to access other components.- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-