public class CustomDataKeyDecoratorTracker extends org.osgi.util.tracker.ServiceTracker<CustomDataKeyDecorator,CustomDataKeyDecorator>
ServiceTracker to obtain a CustomDataKeyDecorator from
the service registry.| Constructor and Description |
|---|
CustomDataKeyDecoratorTracker(org.osgi.framework.BundleContext bc,
Class clazz,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor>... matchers)
Create new ServiceTracker to obtain a CustomDataKeyDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
CustomDataKeyDecorator |
addingService(org.osgi.framework.ServiceReference<CustomDataKeyDecorator> ref)
Register the
matchers in the given CustomDataKeyDecorator
service reference. |
void |
removedService(org.osgi.framework.ServiceReference<CustomDataKeyDecorator> ref,
CustomDataKeyDecorator keyDecorator)
The
CustomDataKeyDecorator service has been removed, so
unregister the matchers. |
public CustomDataKeyDecoratorTracker(org.osgi.framework.BundleContext bc,
Class clazz,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor>... matchers)
bc - clazz - the name of the class registering the matcher (required)matcher - the matchers to register (required)public CustomDataKeyDecorator addingService(org.osgi.framework.ServiceReference<CustomDataKeyDecorator> ref)
matchers in the given CustomDataKeyDecorator
service reference.addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<CustomDataKeyDecorator,CustomDataKeyDecorator>addingService in class org.osgi.util.tracker.ServiceTracker<CustomDataKeyDecorator,CustomDataKeyDecorator>ref - service provider referencepublic void removedService(org.osgi.framework.ServiceReference<CustomDataKeyDecorator> ref, CustomDataKeyDecorator keyDecorator)
CustomDataKeyDecorator service has been removed, so
unregister the matchers.removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<CustomDataKeyDecorator,CustomDataKeyDecorator>removedService in class org.osgi.util.tracker.ServiceTracker<CustomDataKeyDecorator,CustomDataKeyDecorator>Copyright © 2009–2016. All rights reserved.