Files
Brainstorm/Orb/src/com/de22/orb/IProxyInterfaceLoader.java

25 lines
1.1 KiB
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* 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//