Package org.hippoecm.frontend.dialog
Class DialogServiceFactory
java.lang.Object
org.hippoecm.frontend.dialog.DialogServiceFactory
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,IServiceFactory<IDialogService>
The dialog service factory wraps access to the dialog service to make sure that a dialog is
closed when the plugin that opened it is stopped.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
org.apache.wicket.Component
Internal method to give the home page access to the dialog window.getService
(IPluginContext context) Invoked when the service is requested from the service registry with the provided plugin context.Class<? extends IDialogService>
The service class to be wrapped.void
init
(IPluginContext context, String serviceId) void
releaseService
(IPluginContext context, IDialogService service) When the plugin that requested an instance of the service, is stopped, this method is invoked.void
render
(PluginRequestTarget target)
-
Constructor Details
-
DialogServiceFactory
-
-
Method Details
-
init
-
destroy
public void destroy() -
getService
Description copied from interface:IServiceFactory
Invoked when the service is requested from the service registry with the provided plugin context.- Specified by:
getService
in interfaceIServiceFactory<IDialogService>
- Parameters:
context
- the plugin context that was used to request access- Returns:
- an instance of the service that can be used by the plugin
-
getServiceClass
Description copied from interface:IServiceFactory
The service class to be wrapped. Needs to be be present here since the type parameter is not available at run time. (FIXME: really?)- Specified by:
getServiceClass
in interfaceIServiceFactory<IDialogService>
- Returns:
- the service interface class
-
releaseService
Description copied from interface:IServiceFactory
When the plugin that requested an instance of the service, is stopped, this method is invoked. The service factory is encouraged to clean up any resources that have been allocated on behalf of the plugin.- Specified by:
releaseService
in interfaceIServiceFactory<IDialogService>
- Parameters:
context
- the plugin context for the plugin that is stoppedservice
- the instance of the service that was made available to the plugin
-
render
-
getComponent
public org.apache.wicket.Component getComponent()Internal method to give the home page access to the dialog window.
-