Rio Project 4.2 API Documentation
org.rioproject.associations
Class AssociationProxyFactory
java.lang.Object
org.rioproject.associations.AssociationProxyFactory
public class AssociationProxyFactory
- extends Object
Factory for dynamic proxies to manage a collection of associated services.
- Author:
- Dennis Reedy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationProxyFactory
public AssociationProxyFactory()
createProxy
public static Object createProxy(String proxyClassName,
String strategyClassName,
Association association,
ClassLoader loader)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
- Create a proxy for associated services
- Parameters:
proxyClassName - The classname of the proxy to create. This class must
be an instance of AssociationProxystrategyClassName - The classname of the
ServiceSelectionStrategy to create. If this parameter is null,
the AssociationProxy instance will not have a
ServiceSelectionStrategy setassociation - The association for the proxy to useloader - The class loader to create the proxy with
- Returns:
- A generated proxy
- Throws:
ClassNotFoundException - If the interfaces cannot be loaded
IllegalAccessException - if the proxy class cannot be created
InstantiationException - if the proxy class cannot be created
Copyright © 2006-2011 Rio Project. All Rights Reserved.