Top Fields Constructors Methods
org.aspectj.apache.bcel.util

public Class ThreadLocalAwareRepository

extends Object
implements Repository
Class Inheritance
All Implemented Interfaces
org.aspectj.apache.bcel.util.Repository
Imports
java.lang.ref.WeakReference, org.aspectj.apache.bcel.classfile.JavaClass

Field Summary

Modifier and TypeField and Description
private static ThreadLocal<WeakReference<Repository>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Implements org.aspectj.apache.bcel.util.Repository.clear.

Clear all entries from cache.
private static Repository
public JavaClass
findClass(String className)

Implements org.aspectj.apache.bcel.util.Repository.findClass.

Find the class with the name provided, if the class isn't there, return NULL.
public JavaClass
loadClass(String className)

Implements org.aspectj.apache.bcel.util.Repository.loadClass.

Find the class with the name provided, if the class isn't there, make an attempt to load it.
public JavaClass
loadClass(Class<T> clazz)

Implements org.aspectj.apache.bcel.util.Repository.loadClass.

Find the JavaClass instance for the given run-time class object
public void
removeClass(JavaClass clazz)

Implements org.aspectj.apache.bcel.util.Repository.removeClass.

Remove class from repository
public static void
public void
storeClass(JavaClass clazz)

Implements org.aspectj.apache.bcel.util.Repository.storeClass.

Store the provided class under "clazz.getClassName()"
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

threadLocalback to summary
private static ThreadLocal<WeakReference<Repository>> threadLocal

Constructor Detail

ThreadLocalAwareRepositoryback to summary
public ThreadLocalAwareRepository()

Method Detail

clearback to summary
public void clear()

Implements org.aspectj.apache.bcel.util.Repository.clear.

Doc from org.aspectj.apache.bcel.util.Repository.clear.

Clear all entries from cache.

Annotations
@Override
currentRepositoryback to summary
private static Repository currentRepository()
findClassback to summary
public JavaClass findClass(String className)

Implements org.aspectj.apache.bcel.util.Repository.findClass.

Doc from org.aspectj.apache.bcel.util.Repository.findClass.

Find the class with the name provided, if the class isn't there, return NULL.

Annotations
@Override
loadClassback to summary
public JavaClass loadClass(String className) throws ClassNotFoundException

Implements org.aspectj.apache.bcel.util.Repository.loadClass.

Doc from org.aspectj.apache.bcel.util.Repository.loadClass.

Find the class with the name provided, if the class isn't there, make an attempt to load it.

Annotations
@Override
loadClassback to summary
public JavaClass loadClass(Class<T> clazz) throws ClassNotFoundException

Implements org.aspectj.apache.bcel.util.Repository.loadClass.

Doc from org.aspectj.apache.bcel.util.Repository.loadClass.

Find the JavaClass instance for the given run-time class object

Annotations
@Override
removeClassback to summary
public void removeClass(JavaClass clazz)

Implements org.aspectj.apache.bcel.util.Repository.removeClass.

Doc from org.aspectj.apache.bcel.util.Repository.removeClass.

Remove class from repository

Annotations
@Override
setCurrentRepositoryback to summary
public static void setCurrentRepository(Repository repository)
storeClassback to summary
public void storeClass(JavaClass clazz)

Implements org.aspectj.apache.bcel.util.Repository.storeClass.

Doc from org.aspectj.apache.bcel.util.Repository.storeClass.

Store the provided class under "clazz.getClassName()"

Annotations
@Override