JBoss XML Binding 2.0.3.GA

org.jboss.xb.binding.introspection
Class ClassInfos

java.lang.Object
  extended by org.jboss.xb.binding.introspection.ClassInfos

public class ClassInfos
extends Object

Version:
$Revision: $
Author:
Alexey Loubyansky

Constructor Summary
ClassInfos()
           
 
Method Summary
static void disableCache()
          Disables caching of ClassInfo's.
static void enableCache()
          Enables caching of ClassInfo's unless caching is already enabled.
static void flushCache()
          Flushes all the cached ClassInfo's.
static void flushCache(Class<?> cls)
          Evicts ClassInfo for a specific class.
static void flushCache(String cls)
          Evicts ClassInfo for a specific class.
static ClassInfo getClassInfo(Class<?> cls)
           
static ClassInfo getClassInfo(String name, boolean required)
           
static boolean isCacheEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInfos

public ClassInfos()
Method Detail

disableCache

public static void disableCache()
Disables caching of ClassInfo's. Already cached ClassInfo's will be lost after the method returns.


enableCache

public static void enableCache()
Enables caching of ClassInfo's unless caching is already enabled.


isCacheEnabled

public static boolean isCacheEnabled()
Returns:
true if caching is enabled, false otherwise.

flushCache

public static void flushCache()
Flushes all the cached ClassInfo's.


flushCache

public static void flushCache(String cls)
Evicts ClassInfo for a specific class.

Parameters:
cls - fully qualified class name of the class

flushCache

public static void flushCache(Class<?> cls)
Evicts ClassInfo for a specific class.

Parameters:
cls - the class to remove the ClassInfo for

getClassInfo

public static ClassInfo getClassInfo(Class<?> cls)

getClassInfo

public static ClassInfo getClassInfo(String name,
                                     boolean required)

JBoss XML Binding 2.0.3.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.