Search in sources :

Example 1 with ApplicationExceptionInfo

use of org.apache.openejb.assembler.classic.ApplicationExceptionInfo in project tomee by apache.

the class EjbJarInfoBuilder method initApplicationExceptions.

private void initApplicationExceptions(final EjbModule jar, final EjbJarInfo ejbJarInfo) {
    for (final ApplicationException applicationException : jar.getEjbJar().getAssemblyDescriptor().getApplicationException()) {
        final ApplicationExceptionInfo info = new ApplicationExceptionInfo();
        info.exceptionClass = applicationException.getExceptionClass();
        info.rollback = applicationException.isRollback();
        info.inherited = applicationException.isInherited();
        ejbJarInfo.applicationException.add(info);
    }
}
Also used : ApplicationExceptionInfo(org.apache.openejb.assembler.classic.ApplicationExceptionInfo) ApplicationException(org.apache.openejb.jee.ApplicationException)

Aggregations

ApplicationExceptionInfo (org.apache.openejb.assembler.classic.ApplicationExceptionInfo)1 ApplicationException (org.apache.openejb.jee.ApplicationException)1