/** * Receive notification of a warning * @param ape The warning information * @throws any exception to stop the annotation processing */ public void warning(AnnotationProcessorException ape) throws AnnotationProcessorException { if (logger.isLoggable(Level.WARNING)){ AnnotationInfo info = ape.getLocator(); if (info==null){ logger.warning(ape.getMessage()); } else{ logger.warning(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
/** * Receive notication of a fine error message * @param ape The warning information * @throws any exception to stop the annotation processing */ public void fine(AnnotationProcessorException ape) throws AnnotationProcessorException { if (logger.isLoggable(Level.FINE)){ AnnotationInfo info = ape.getLocator(); if (info==null){ logger.fine(ape.getMessage()); } else{ logger.fine(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
/** * Receive notication of a fine error message * @param ape The warning information * @throws any exception to stop the annotation processing */ public void fine(AnnotationProcessorException ape) throws AnnotationProcessorException { if (logger.isLoggable(Level.FINE)){ AnnotationInfo info = ape.getLocator(); if (info==null){ logger.fine(ape.getMessage()); } else{ logger.fine(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
/** * Receive notification of a warning * @param ape The warning information * @throws any exception to stop the annotation processing */ public void warning(AnnotationProcessorException ape) throws AnnotationProcessorException { if (logger.isLoggable(Level.WARNING)){ AnnotationInfo info = ape.getLocator(); if (info==null){ logger.warning(ape.getMessage()); } else{ logger.warning(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
/** * Receive notification of an error * @param ape The error information * @throws amy exception to stop the annotation processing */ public void error(AnnotationProcessorException ape) throws AnnotationProcessorException { AnnotationInfo info = ape.getLocator(); if (info==null){ logger.severe(ape.getMessage()); } else{ logger.severe(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0} location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
/** * Receive notification of an error * @param ape The error information * @throws amy exception to stop the annotation processing */ public void error(AnnotationProcessorException ape) throws AnnotationProcessorException { AnnotationInfo info = ape.getLocator(); if (info==null){ logger.severe(ape.getMessage()); } else{ logger.severe(AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0} location: {1}\n\n", new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()})); } } }
} catch(AnnotationProcessorException ape) { log(Level.SEVERE, ape.getLocator(), ape.getMessage());
} catch(AnnotationProcessorException ape) { log(Level.SEVERE, ape.getLocator(), ape.getMessage());