org.apache.avalon.excalibur.component
Class ComponentProxyGenerator

java.lang.Object
  |
  +--org.apache.avalon.excalibur.component.ComponentProxyGenerator

public final class ComponentProxyGenerator
extends Object

Create a Component proxy. Requires JDK 1.3+

Author:
Berin Loritsch

Constructor Summary
ComponentProxyGenerator()
          Initialize the ComponentProxyGenerator with the default classloader.
ComponentProxyGenerator(ClassLoader parentClassLoader)
          Initialize the ComponentProxyGenerator with the supplied classloader.
 
Method Summary
 Component getProxy(String role, Object service)
          Get the Component wrapped in the proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentProxyGenerator

public ComponentProxyGenerator()
Initialize the ComponentProxyGenerator with the default classloader. The default classloader is the Thread context classloader.


ComponentProxyGenerator

public ComponentProxyGenerator(ClassLoader parentClassLoader)
Initialize the ComponentProxyGenerator with the supplied classloader. If the supplied class loader is null, we use the Thread context class loader. If that is null, we use this class's classloader.

Method Detail

getProxy

public Component getProxy(String role,
                          Object service)
                   throws Exception
Get the Component wrapped in the proxy. The role must be the service interface's fully qualified classname to work.

Exception


Copyright © 2000-2002 Apache Jakarta Project. All Rights Reserved.