final ApplicationExceptions applicationExceptions = new ApplicationExceptions(); for (DeploymentUnit unit : accessibleSubDeployments) { try { final Class<?> index = ClassLoadingUtils.loadClass(exception.getKey(), module); applicationExceptions.addApplicationException(index, exception.getValue()); } catch (ClassNotFoundException e) { ROOT_LOGGER.debug("Could not load application exception class", e); applicationExceptions.addApplicationException(index, new ApplicationExceptionDetails(exceptionClassName, inherited, rollback)); } catch (ClassNotFoundException e) { throw EjbLogger.ROOT_LOGGER.failToLoadAppExceptionClassInEjbJarXml(exceptionClassName, e);
this.applicationExceptions = Collections.unmodifiableMap(ejbComponentCreateService.getApplicationExceptions().getApplicationExceptions()); final Map<MethodTransactionAttributeKey, TransactionAttributeType> txAttrs = ejbComponentCreateService.getTxAttrs(); if (txAttrs == null || txAttrs.isEmpty()) {
public void checkSyntax(String rule) { // TODO Auto-generated method stub try { CharStream stream=new ANTLRInputStream(decodeRule(rule)); RuleExpLexer lexer=new RuleExpLexer(stream); CommonTokenStream tokens=new CommonTokenStream(lexer); RuleExpParser parser=new RuleExpParser(tokens); parser.start(); } catch (Exception e) { // TODO: handle exception throw new ApplicationExceptions("uacRule is Wrong"); } }
final ApplicationExceptions applicationExceptions = new ApplicationExceptions(); for (DeploymentUnit unit : accessibleSubDeployments) { try { final ClassIndex index = classIndex.classIndex(exception.getKey()); applicationExceptions.addApplicationException(index.getModuleClass(), exception.getValue()); } catch (ClassNotFoundException e) { ROOT_LOGGER.debug("Could not load application exception class", e); applicationExceptions.addApplicationException(index.getModuleClass(), new ApplicationExceptionDetails(exceptionClassName, inherited, rollback)); } catch (ClassNotFoundException e) { throw MESSAGES.failToLoadAppExceptionClassInEjbJarXml(exceptionClassName,e);
this.applicationExceptions = Collections.unmodifiableMap(ejbComponentCreateService.getApplicationExceptions().getApplicationExceptions());