25 lines
1.1 KiB
Java
25 lines
1.1 KiB
Java
|
|
/*
|
||
|
|
* Copyright (c) 2008,2009 Declarative Engineering LLC.
|
||
|
|
* All rights reserved. This program and the accompanying materials
|
||
|
|
* are made available under the terms of the Declarative Engineering LLC
|
||
|
|
* verson 1 which accompanies this distribution, and is available at
|
||
|
|
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||
|
|
*/
|
||
|
|
package com.de22.orb;
|
||
|
|
|
||
|
|
public interface IProxyInterfaceLoader {
|
||
|
|
/**
|
||
|
|
* Loads the proxied interface class given the proxied object.
|
||
|
|
* <p>Usually this puts an I infront of the class name and hopes the class exists.</p>
|
||
|
|
* @param proxiedObject The proxied object.
|
||
|
|
* @return The interface class to be proxied.
|
||
|
|
*/
|
||
|
|
public Class loadDefaultProxyInterface(Object proxiedObject, ClassLoader classLoader) throws ClassNotFoundException;
|
||
|
|
/**
|
||
|
|
* Loads the proxy class given the proxied interface class and an optional class loader.
|
||
|
|
* @param interfaceClass The class that will be proxied.
|
||
|
|
* @param classLoader The optional class loader used to load the proxy class.
|
||
|
|
* @return The proxy class.
|
||
|
|
*/
|
||
|
|
public Class loadProxyClass(Class interfaceClass, ClassLoader classLoader) throws ClassNotFoundException;
|
||
|
|
}//IProxyInterfaceLoader//
|