Change-Id: Id92b7c469ffa6da22745854fc5d58862f232d6a2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
ServiceReference<BindingAwareBroker> brokerRef = context.getServiceReference(BindingAwareBroker.class);
BindingAwareBroker broker = context.getService(brokerRef);
broker.registerConsumer(this, context);
ServiceReference<BindingAwareBroker> brokerRef = context.getServiceReference(BindingAwareBroker.class);
BindingAwareBroker broker = context.getService(brokerRef);
broker.registerConsumer(this, context);
//context.ungetService(brokerRef);
}
//context.ungetService(brokerRef);
}
+ @Deprecated
+ abstract protected void startImpl(BundleContext context);
+
@Override
public final void stop(BundleContext context) throws Exception {
// TODO Auto-generated method stub
@Override
public final void stop(BundleContext context) throws Exception {
// TODO Auto-generated method stub
ServiceReference<BindingAwareBroker> brokerRef = context.getServiceReference(BindingAwareBroker.class);
BindingAwareBroker broker = context.getService(brokerRef);
broker.registerProvider(this, context);
ServiceReference<BindingAwareBroker> brokerRef = context.getServiceReference(BindingAwareBroker.class);
BindingAwareBroker broker = context.getService(brokerRef);
broker.registerProvider(this, context);
+
+ @Deprecated
+ abstract protected void startImpl(BundleContext context);
+
@Override
public final void stop(BundleContext context) throws Exception {
@Override
public final void stop(BundleContext context) throws Exception {
+
+ @Override
+ @Deprecated
+ protected void startImpl(BundleContext context) {
+ context.registerService(ToastConsumer.class, this, new Hashtable<String,String>());
+ }
@Override
public void onSessionInitialized(ConsumerContext session) {
@Override
public void onSessionInitialized(ConsumerContext session) {
public Collection<? extends ProviderFunctionality> getFunctionality() {
return Collections.emptySet();
}
public Collection<? extends ProviderFunctionality> getFunctionality() {
return Collections.emptySet();
}
+
+ @Override
+ @Deprecated
+ protected void startImpl(BundleContext context) {
+ // TODO Auto-generated method stub
+
+ }