Package org.jboss.soa.esb.actions

Examples of org.jboss.soa.esb.actions.ActionLifecycleException


    public static <U> void initialise(U instance, ConfigTree config) throws ActionLifecycleException {
        try {
      checkPropertiesConfigured(instance.getClass(), instance);
    } catch (ConfigurationException e) {
      throw new ActionLifecycleException("Cannot initialize object instance because the objects properties have not been configured.", e);
    }
        invoke(instance, Initialize.class, config);
    }
View Full Code Here


                }

                try {
                  method.invoke(instance, args);
                } catch (IllegalAccessException e) {
                  throw new ActionLifecycleException("Error invoking @" + annotation.getSimpleName() + " method '" + method.getName() + "' on class '" + instance.getClass().getName() + "'.", e);
                } catch (InvocationTargetException e) {
                  Throwable targetException = e.getTargetException();
                  if(targetException instanceof ActionLifecycleException) {
                    throw (ActionLifecycleException) targetException;
                  }
                  throw new ActionLifecycleException("Error invoking @" + annotation.getSimpleName() + " method '" + method.getName() + "' on class '" + instance.getClass().getName() + "'.", targetException);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.ActionLifecycleException

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.