org.apache.avalon.excalibur.component
Class ComponentProxyGenerator

java.lang.Object
  extended by org.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

Nested Class Summary
private static class ComponentProxyGenerator.ComponentInvocationHandler
          Deprecated. Internal class to handle the wrapping with Component
 
Field Summary
private  java.lang.ClassLoader m_classLoader
          Deprecated.  
 
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
private  void getAllInterfaces(java.lang.Class clazz, java.util.Set interfaces)
          Deprecated.  
 org.apache.avalon.framework.component.Component getCompatibleProxy(java.lang.Object service)
          Deprecated. Get the component wrapped in a proxy.
 org.apache.avalon.framework.component.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
 

Field Detail

m_classLoader

private final java.lang.ClassLoader m_classLoader
Deprecated. 
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 org.apache.avalon.framework.component.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 org.apache.avalon.framework.component.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

getAllInterfaces

private void getAllInterfaces(java.lang.Class clazz,
                              java.util.Set interfaces)
                       throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception