Package org.eclipse.equinox.log

Examples of org.eclipse.equinox.log.ExtendedLogReaderService


    ServiceReference readerRef = context.getServiceReference(ExtendedLogReaderService.class.getName());
    ServiceReference packageAdminRef = context.getServiceReference(PackageAdmin.class.getName());
    if (logRef == null || readerRef == null || packageAdminRef == null)
      return null;
    ExtendedLogService logService = (ExtendedLogService) context.getService(logRef);
    ExtendedLogReaderService readerService = (ExtendedLogReaderService) context.getService(readerRef);
    PackageAdmin packageAdmin = (PackageAdmin) context.getService(packageAdminRef);
    if (logService == null || readerService == null || packageAdmin == null)
      return null;
    PlatformLogWriter writer = new PlatformLogWriter(logService, packageAdmin, context.getBundle());
    readerService.addLogListener(writer, writer);
    return writer;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.equinox.log.ExtendedLogReaderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.