JBoss Logging I18n Annotation Processor 1.1.0.Final

org.jboss.logging.processor
Class Tools

java.lang.Object
  extended by org.jboss.logging.processor.Tools

public class Tools
extends Object

A helper class that uses services loaders to load implementations for the Annotations and the Loggers interfaces. If the service loader did not find an implementation a default implementation is used.

Author:
James R. Perkins - 21.Feb.2011

Method Summary
static Annotations annotations()
          Locates the first implementation of Annotations.
static Loggers loggers()
          Locates the first implementation of Loggers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

annotations

public static Annotations annotations()
Locates the first implementation of Annotations.

Returns:
the annotations
Throws:
IllegalStateException - if the implementation could not be found.

loggers

public static Loggers loggers()
Locates the first implementation of Loggers.

Returns:
the loggers to use.
Throws:
IllegalStateException - if the implementation could not be found.

JBoss Logging I18n Annotation Processor 1.1.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.