Class WindowValidatorManager
java.lang.Object
org.adempiere.webui.adwindow.validator.WindowValidatorManager
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
,org.osgi.util.tracker.ServiceTrackerCustomizer<WindowValidator,
WindowValidator>
public class WindowValidatorManager
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer<WindowValidator,WindowValidator>
Manage
WindowValidator
osgi services- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddingService
(org.osgi.framework.ServiceReference<WindowValidator> reference) protected void
addService
(WindowValidator service, String uuid, String events) AddWindowValidator
service for an AD Windowvoid
fireWindowValidatorEvent
(WindowValidatorEvent event, Callback<Boolean> callback) fire window validator event for all registerWindowValidator
servicestatic WindowValidatorManager
void
modifiedService
(org.osgi.framework.ServiceReference<WindowValidator> reference, WindowValidator service) void
removedService
(org.osgi.framework.ServiceReference<WindowValidator> reference, WindowValidator service) protected void
removeService
(WindowValidator service, String uuid) void
start
(org.osgi.framework.BundleContext context) CreateserviceTracker
andinstance
void
stop
(org.osgi.framework.BundleContext context) CloseserviceTracker
and disposeinstance
-
Constructor Details
-
WindowValidatorManager
public WindowValidatorManager()
-
-
Method Details
-
addingService
public WindowValidator addingService(org.osgi.framework.ServiceReference<WindowValidator> reference) - Specified by:
addingService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<WindowValidator,
WindowValidator>
-
addService
AddWindowValidator
service for an AD Window- Parameters:
service
-uuid
- AD_Window_UUevents
-
-
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference<WindowValidator> reference, WindowValidator service) - Specified by:
modifiedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<WindowValidator,
WindowValidator>
-
removedService
public void removedService(org.osgi.framework.ServiceReference<WindowValidator> reference, WindowValidator service) - Specified by:
removedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<WindowValidator,
WindowValidator>
-
removeService
- Parameters:
service
-uuid
-
-
start
CreateserviceTracker
andinstance
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
CloseserviceTracker
and disposeinstance
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
getInstance
- Returns:
WindowValidatorManager
-
fireWindowValidatorEvent
fire window validator event for all registerWindowValidator
service- Parameters:
event
-callback
- optional callback
-