de.kalpatec.pojosr.framework
Class PojoSR

java.lang.Object
  extended by de.kalpatec.pojosr.framework.PojoSR
All Implemented Interfaces:
PojoServiceRegistry

public class PojoSR
extends Object
implements PojoServiceRegistry


Constructor Summary
PojoSR(Map config)
           
 
Method Summary
 void addServiceListener(org.osgi.framework.ServiceListener listener)
           
 void addServiceListener(org.osgi.framework.ServiceListener listener, String filter)
           
 org.osgi.framework.BundleContext getBundleContext()
           
 Object getService(org.osgi.framework.ServiceReference reference)
           
 org.osgi.framework.ServiceReference getServiceReference(String clazz)
           
 org.osgi.framework.ServiceReference[] getServiceReferences(String clazz, String filter)
           
static void main(String[] args)
           
 org.osgi.framework.ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties)
           
 org.osgi.framework.ServiceRegistration registerService(String clazz, Object service, Dictionary properties)
           
 void removeServiceListener(org.osgi.framework.ServiceListener listener)
           
 void startBundles(List<BundleDescriptor> scan)
           
 boolean ungetService(org.osgi.framework.ServiceReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoSR

public PojoSR(Map config)
       throws Exception
Throws:
Exception
Method Detail

startBundles

public void startBundles(List<BundleDescriptor> scan)
                  throws Exception
Specified by:
startBundles in interface PojoServiceRegistry
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Specified by:
getBundleContext in interface PojoServiceRegistry

addServiceListener

public void addServiceListener(org.osgi.framework.ServiceListener listener,
                               String filter)
                        throws org.osgi.framework.InvalidSyntaxException
Specified by:
addServiceListener in interface PojoServiceRegistry
Throws:
org.osgi.framework.InvalidSyntaxException

addServiceListener

public void addServiceListener(org.osgi.framework.ServiceListener listener)
Specified by:
addServiceListener in interface PojoServiceRegistry

removeServiceListener

public void removeServiceListener(org.osgi.framework.ServiceListener listener)
Specified by:
removeServiceListener in interface PojoServiceRegistry

registerService

public org.osgi.framework.ServiceRegistration registerService(String[] clazzes,
                                                              Object service,
                                                              Dictionary properties)
Specified by:
registerService in interface PojoServiceRegistry

registerService

public org.osgi.framework.ServiceRegistration registerService(String clazz,
                                                              Object service,
                                                              Dictionary properties)
Specified by:
registerService in interface PojoServiceRegistry

getServiceReferences

public org.osgi.framework.ServiceReference[] getServiceReferences(String clazz,
                                                                  String filter)
                                                           throws org.osgi.framework.InvalidSyntaxException
Specified by:
getServiceReferences in interface PojoServiceRegistry
Throws:
org.osgi.framework.InvalidSyntaxException

getServiceReference

public org.osgi.framework.ServiceReference getServiceReference(String clazz)
Specified by:
getServiceReference in interface PojoServiceRegistry

getService

public Object getService(org.osgi.framework.ServiceReference reference)
Specified by:
getService in interface PojoServiceRegistry

ungetService

public boolean ungetService(org.osgi.framework.ServiceReference reference)
Specified by:
ungetService in interface PojoServiceRegistry


Copyright © 2012. All Rights Reserved.