public Troubleshoot() { ServiceHelper.registerGlobalService(IDaylightWeb.class, this, null); }
public Flows() { ServiceHelper.registerGlobalService(IDaylightWeb.class, this, null); gson = new Gson(); }
/** * Register a Service in the OSGi service registry * * @param clazz The target class * @param containerName The container name * @param instance of the object exporting the service, be careful * the object must implement/extend clazz else the registration * will fail unless a ServiceFactory is passed as parameter * @param properties The properties to be attached to the service * registration * @return true if registration happened, false otherwise */ public static boolean registerService(Class<?> clazz, String containerName, Object instance, Dictionary<String, Object> properties) { if (properties == null) { properties = (Dictionary<String, Object>) new Hashtable<String, Object>(); } properties.put("containerName", containerName); return registerGlobalService(clazz, instance, properties); }
public Topology() { ServiceHelper.registerGlobalService(IConfigurationAware.class, this, null); topologyWebFileName = ROOT + "topologyCache.sav"; loadConfiguration(); }