org.codehaus.aspectwerkz.reflect.impl.asm
Class AsmClassInfoRepository

java.lang.Object
  extended by org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfoRepository

public class AsmClassInfoRepository
extends Object

A repository for the class info hierarchy. Is class loader aware.

Author:
Jonas BonŽr

Method Summary
 void addClassInfo(ClassInfo classInfo)
          Adds a new class info.
 ClassInfo checkParentClassRepository(String className, ClassLoader loader)
          Searches for a class info up in the class loader hierarchy.
 Properties getAnnotationProperties()
          Returns the annotation properties for the specific class loader.
 ClassInfo getClassInfo(String className)
          Returns the class info.
static AsmClassInfoRepository getRepository(ClassLoader loader)
          Returns the class info repository for the specific class loader
 boolean hasClassInfo(String name)
          Checks if the class info for a specific class exists.
 void removeClassInfo(String className)
          Removes the class from the repository (since it has been modified and needs to be rebuild).
static void removeClassInfoFromAllClassLoaders(String className)
          Remove a class from the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRepository

public static AsmClassInfoRepository getRepository(ClassLoader loader)
Returns the class info repository for the specific class loader

Parameters:
loader -
Returns:

removeClassInfoFromAllClassLoaders

public static void removeClassInfoFromAllClassLoaders(String className)
Remove a class from the repository.

Parameters:
className - the name of the class

getClassInfo

public ClassInfo getClassInfo(String className)
Returns the class info.

Parameters:
className -
Returns:

addClassInfo

public void addClassInfo(ClassInfo classInfo)
Adds a new class info.

Parameters:
classInfo -

hasClassInfo

public boolean hasClassInfo(String name)
Checks if the class info for a specific class exists.

Parameters:
name -
Returns:

removeClassInfo

public void removeClassInfo(String className)
Removes the class from the repository (since it has been modified and needs to be rebuild).

Parameters:
className -

getAnnotationProperties

public Properties getAnnotationProperties()
Returns the annotation properties for the specific class loader.

Returns:
the annotation properties

checkParentClassRepository

public ClassInfo checkParentClassRepository(String className,
                                            ClassLoader loader)
Searches for a class info up in the class loader hierarchy.

Parameters:
className -
loader -
Returns:
the class info


Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.