T - the type of the root object.public class ProxyBuilder<T> extends Object
| Constructor and Description |
|---|
ProxyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
build()
Creates a proxy object out of the specified root object and the specified interfaces
and implementations.
|
ProxyBuilder<T> |
withInterface(Class<?> interfaceClass,
ICommentProcessor interfaceImpl)
Specifies an interfaces and an implementation of an interface by which the root object
shall be extended.
|
ProxyBuilder<T> |
withRoot(T rootObject)
Specifies the root object for the proxy that shall be enhanced.
|
public ProxyBuilder<T> withRoot(T rootObject)
rootObject - the root object.public ProxyBuilder<T> withInterface(Class<?> interfaceClass, ICommentProcessor interfaceImpl)
interfaceClass - the class of the interfaceinterfaceImpl - an implementation of the interfacepublic T build() throws ProxyException
ProxyException - if the proxy could not be created.Copyright © 2017. All rights reserved.