org.codehaus.aspectwerkz
Class SystemLoader

java.lang.Object
  extended byorg.codehaus.aspectwerkz.SystemLoader

public final class SystemLoader
extends Object

Stores the AspectSystem on a per ClassLoader basis.

The getSystem method checks for system initialization.

Author:
Jonas Bonér , Alexandre Vasseur

Constructor Summary
SystemLoader()
           
 
Method Summary
static void deploySystemDefinitions(ClassLoader loader, List definitions, boolean activate)
           
static Collection getAllSystems()
           
static AspectSystem getSystem(Class klass)
          Returns the System for a specific class.
static AspectSystem getSystem(ClassLoader loader)
          Returns the System for a specific ClassLoader.
static AspectSystem getSystem(Object instance)
          Returns the System for a specific instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemLoader

public SystemLoader()
Method Detail

getSystem

public static AspectSystem getSystem(ClassLoader loader)
Returns the System for a specific ClassLoader. If the system is not initialized, register the ClassLoader hierarchy and all the definitions to initialize the system.

Parameters:
loader - the ClassLoader
Returns:
the System instance for this ClassLoader

getSystem

public static AspectSystem getSystem(Object instance)
Returns the System for a specific instance. The instance class ClassLoader is queried. TODO: avoid bootCL lookup

Parameters:
instance -
Returns:
the System instance for the instance class ClassLoader

getSystem

public static AspectSystem getSystem(Class klass)
Returns the System for a specific class. The class ClassLoader is queried. TODO: avoid bootCL lookup

Parameters:
klass -
Returns:
the System instance for the class ClassLoader

getAllSystems

public static Collection getAllSystems()

deploySystemDefinitions

public static void deploySystemDefinitions(ClassLoader loader,
                                           List definitions,
                                           boolean activate)


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