org.jboss.webbeans.util
Class ApiAbstraction

java.lang.Object
  extended by org.jboss.webbeans.util.ApiAbstraction
Direct Known Subclasses:
EJB, JSF, Servlet

public class ApiAbstraction
extends java.lang.Object

A base class for utility classes that represent annotations, classes etc

Author:
Pete Muir

Nested Class Summary
static interface ApiAbstraction.Dummy
          "Not found" class
static interface ApiAbstraction.DummyAnnotation
          "Not found" annotation
 
Constructor Summary
ApiAbstraction()
           
 
Method Summary
protected static java.lang.Class<? extends java.lang.annotation.Annotation> annotationTypeForName(java.lang.String name)
          Initializes an annotation class
protected static java.lang.Class<?> classForName(java.lang.String name)
          Initializes a type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiAbstraction

public ApiAbstraction()
Method Detail

annotationTypeForName

protected static java.lang.Class<? extends java.lang.annotation.Annotation> annotationTypeForName(java.lang.String name)
Initializes an annotation class

Parameters:
name - The name of the annotation class
Returns:
The instance of the annotation. Returns a dummy if the class was not found

classForName

protected static java.lang.Class<?> classForName(java.lang.String name)
Initializes a type

Parameters:
name - The name of the class
Returns:
The instance of the class. Returns a dummy if the class was not found.


Copyright © 2008. All Rights Reserved.