public class ContextFactory<T> extends Object
Constructor and Description |
---|
ContextFactory()
|
Modifier and Type | Method and Description |
---|---|
T |
createProxy(T root,
Class<?> interfaceClass,
ICommentProcessor interfaceImpl)
Creates a proxy object that is able to answer calls to all
methods defined in the specified root object
as well as all methods defined in the specified interface class.
|
public T createProxy(T root, Class<?> interfaceClass, ICommentProcessor interfaceImpl) throws Exception
root
- the root object which is extended to support the specified
interface.
interfaceClass
- the interface by which the root object is to be
extended.
interfaceImpl
- object implementing the specified interface. Calls
on the interface are delegated to this object.
Exception
- in case a
proxy could not be created.
Copyright © 2016. All rights reserved.