コード例 #1
0
 /**
  * Returns a reference to a FileAccessService implementation currently registered in the bundle
  * context or null if no such implementation was found.
  *
  * @return a currently valid implementation of the FileAccessService .
  */
 public static FileAccessService getFileAccessService() {
   if (fileAccessService == null) {
     fileAccessService = ServiceUtils.getService(bundleContext, FileAccessService.class);
   }
   return fileAccessService;
 }
コード例 #2
0
 /**
  * Returns a reference to the <tt>PacketLoggingService</tt> implementation currently registered in
  * the bundle context or null if no such implementation was found.
  *
  * @return a reference to a <tt>PacketLoggingService</tt> implementation currently registered in
  *     the bundle context or null if no such implementation was found.
  */
 public static PacketLoggingService getPacketLogging() {
   if (packetLoggingService == null) {
     packetLoggingService = ServiceUtils.getService(bundleContext, PacketLoggingService.class);
   }
   return packetLoggingService;
 }
コード例 #3
0
 /**
  * Returns a reference to a ConfigurationService implementation currently registered in the bundle
  * context or null if no such implementation was found.
  *
  * @return a currently valid implementation of the ConfigurationService.
  */
 public static ConfigurationService getConfigurationService() {
   if (configurationService == null) {
     configurationService = ServiceUtils.getService(bundleContext, ConfigurationService.class);
   }
   return configurationService;
 }