/** * Log a message on the default logger */ public void log(Level level, AnnotationInfo locator, String localizedMessage){ if (logger!=null && logger.isLoggable(level)){ if (locator!=null){ logger.log(level, AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}", new Object[] { locator.getAnnotation().annotationType().getName(), locator.getAnnotatedElement(), localizedMessage})); } else{ logger.log(level, localizedMessage); } } }
/** * Log a message on the default logger */ public void log(Level level, AnnotationInfo locator, String localizedMessage){ if (logger!=null && logger.isLoggable(level)){ if (locator!=null){ logger.log(level, AnnotationUtils.getLocalString( "enterprise.deployment.annotation.error", "{2}\n symbol: {0}\n location: {1}", new Object[] { locator.getAnnotation().annotationType().getName(), locator.getAnnotatedElement(), localizedMessage})); } else{ logger.log(level, localizedMessage); } } }
/** * 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()})); } } }
AnnotationUtils.getLocalString( "enterprise.deployment.annotation.toomanyerror", "Too many errors, annotation processing abandoned."));
AnnotationUtils.getLocalString( "enterprise.deployment.annotation.toomanyerror", "Too many errors, annotation processing abandoned."));
AnnotationUtils.getLocalString( "enterprise.deployment.annotation.classnotfounderror", "Class [ {0} ] not found. Error while loading [ {1} ]",
AnnotationUtils.getLocalString( "enterprise.deployment.annotation.classnotfounderror", "Class [ {0} ] not found. Error while loading [ {1} ]",