org.apache.avalon.excalibur.component
Class ComponentProxyGenerator

java.lang.Object
  extended byorg.apache.avalon.excalibur.component.ComponentProxyGenerator

Deprecated. ECM is no longer supported

public final class ComponentProxyGenerator
extends java.lang.Object

Create a Component proxy. Requires JDK 1.3+

Author:
Avalon Development Team

Constructor Summary
ComponentProxyGenerator()
          Deprecated. Initialize the ComponentProxyGenerator with the default classloader.
ComponentProxyGenerator(java.lang.ClassLoader parentClassLoader)
          Deprecated. Initialize the ComponentProxyGenerator with the supplied classloader.
 
Method Summary
 Component getCompatibleProxy(java.lang.Object service)
          Deprecated. Get the component wrapped in a proxy.
 Component getProxy(java.lang.String role, java.lang.Object service)
          Deprecated. 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()
Deprecated. 
Initialize the ComponentProxyGenerator with the default classloader. The default classloader is the Thread context classloader.


ComponentProxyGenerator

public ComponentProxyGenerator(java.lang.ClassLoader parentClassLoader)
Deprecated. 
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(java.lang.String role,
                          java.lang.Object service)
                   throws java.lang.Exception
Deprecated. 
Get the Component wrapped in the proxy. The role must be the service interface's fully qualified classname to work.

Throws:
java.lang.Exception

getCompatibleProxy

public Component getCompatibleProxy(java.lang.Object service)
                             throws java.lang.Exception
Deprecated. 
Get the component wrapped in a proxy. The proxy will implement all the object's interfaces, for compatibility with, for example, the pool code. The proxy is guaranteed to implement Component.

Throws:
java.lang.Exception


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.