Examples of OsgiBundleContextFailedEvent


Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

   
    private Throwable getException(OsgiBundleApplicationContextEvent event) {
      if (!(event instanceof OsgiBundleContextFailedEvent)) {
          return null;
        }
      OsgiBundleContextFailedEvent failureEvent = (OsgiBundleContextFailedEvent) event;
      return failureEvent.getFailureCause();
    }
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

    message.append(buf.toString());

    log.error(message.toString(), t);

    // send notification
    delegatedMulticaster.multicastEvent(new OsgiBundleContextFailedEvent(delegateContext,
      delegateContext.getBundle(), t));

    // rethrow the exception wrapped to the caller (and prevent bundles
    // started in sync mode to complete).
    // throw new ApplicationContextException("cannot refresh context", t);
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

    return this.delegatedMulticaster;
  }

  private void sendFailedEvent(Throwable cause) {
    if (delegatedMulticaster != null)
      delegatedMulticaster.multicastEvent(new OsgiBundleContextFailedEvent(this, this.getBundle(), cause));
  }
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

   
    private Throwable getException(OsgiBundleApplicationContextEvent event) {
      if (!(event instanceof OsgiBundleContextFailedEvent)) {
          return null;
        }
      OsgiBundleContextFailedEvent failureEvent = (OsgiBundleContextFailedEvent) event;
      return failureEvent.getFailureCause();
    }
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

    return this.delegatedMulticaster;
  }

  private void sendFailedEvent(Throwable cause) {
    if (delegatedMulticaster != null)
      delegatedMulticaster.multicastEvent(new OsgiBundleContextFailedEvent(this, this.getBundle(), cause));
  }
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

    if (event instanceof OsgiBundleContextRefreshedEvent) {
      log.info("Application context successfully refreshed (" + applicationContextString + ")");
    }

    if (event instanceof OsgiBundleContextFailedEvent) {
      OsgiBundleContextFailedEvent failureEvent = (OsgiBundleContextFailedEvent) event;
      log.error("Application context refresh failed (" + applicationContextString + ")",
        failureEvent.getFailureCause());

    }

    if (event instanceof OsgiBundleContextClosedEvent) {
      OsgiBundleContextClosedEvent closedEvent = (OsgiBundleContextClosedEvent) event;
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

    message.append(buf.toString());

    log.error(message.toString(), t);

    // send notification
    delegatedMulticaster.multicastEvent(new OsgiBundleContextFailedEvent(delegateContext, delegateContext
        .getBundle(), t));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.