Package org.knopflerfish.service.log

Examples of org.knopflerfish.service.log.LogRef


  private FrameworkTrayIcon tray_icon = null;

  public void start(BundleContext _bc) {
    this.bc  = _bc;
    this.log = new LogRef(bc);

    EventQueue.invokeLater(new Runnable() {
      public void run()
      {
        try {
View Full Code Here


    this.bc = bc;
    this.eventAdminTracker = eventAdminTracker;
    this.event = event;
    // Call only listeners that are present when the event happened.
    this.listeners = (Vector) listeners.clone();
    this.log = new LogRef(bc);
  }
View Full Code Here

         */
        public EventGenerator(BundleContext context) {
          /* call the super class */
            super("Event generator");
            /* assign the log */
            log = new LogRef(context);
            assertNotNull(getName()+ " can't get the log service",log);
            bundleContext=context;
        }
View Full Code Here

            return;
          }
        } catch (IllegalArgumentException iae){
          // An 'If-Modified-Since' header is present but the value
          // can not be parsed; ignore it.
          final LogRef log = Activator.log;
          if (null!=log && log.doDebug()) {
            log.debug("Ignoring broken 'If-Modified-Since' header: "
                      +iae.getMessage(), iae);
          }
        }
        response.setDateHeader("Last-Modified", date);
      }
View Full Code Here

    public void start(BundleContext bc) {

        Activator.bc = bc;

        log = new LogRef(bc, true);

        serverFactory = new HttpServerFactory(bc, log);

        Dictionary parameters = new Hashtable();
        parameters.put("service.pid", FACTORY_PID);
View Full Code Here

   }

   public void start(BundleContext bc)
              throws BundleException {
      try {
         log = new LogRef(bc, true);
         axisBundle = bc;
   setupAxis();
      } catch (Exception e) {
  log.error("Exception when starting bundle", e);
  throw new BundleException("Failed to start server");
View Full Code Here

TOP

Related Classes of org.knopflerfish.service.log.LogRef

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.