Package org.eclipse.sisu.peaberry

Examples of org.eclipse.sisu.peaberry.ServiceUnavailableException


      synchronized (this) {
        if (DORMANT == state) {
          try {
            instance = acquireService();
          } catch (final RuntimeException re) {
            throw new ServiceUnavailableException(re);
          } finally {
            state = ACTIVE;
          }
        }
      }
View Full Code Here


        throws Throwable {
      try {

        final Object instance = super.get();
        if (null == instance) {
          throw new ServiceUnavailableException();
        }

        // only intercept interesting methods
        if (!methodMatcher.matches(method) || !classMatcher.matches(method.getDeclaringClass())) {
          return method.invoke(instance, args);
View Full Code Here

      synchronized (this) {
        if (DORMANT == state) {
          try {
            instance = ExtensionBeanFactory.newInstance(clazz, config);
          } catch (final RuntimeException re) {
            throw new ServiceUnavailableException(re);
          } finally {
            state = ACTIVE;
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.sisu.peaberry.ServiceUnavailableException

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.