Package org.springframework.osgi.context.event

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


    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

    return this.delegatedMulticaster;
  }

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

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

    return this.delegatedMulticaster;
  }

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

    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

    message.append(buf.toString());

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

    // send notification
    delegatedMulticaster.multicastEvent(new OsgiBundleContextFailedEvent(delegateContext, delegateContext
        .getBundle(), t));
  }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.context.event.OsgiBundleContextFailedEvent

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.