|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.toys.decorate.Decorating<U,T>
public class Decorating<U,T>
Toy factory to create proxies decorating an object in an AOP style.
An InvocationDecorator is used for the additional functionality. It is called before the original method is called, after the original method was called, after the original method has thrown an exception or when an exception occurs, calling the method of the decorated object.
com.thoughtworks.proxy.toys.decorate
Nested Class Summary | |
---|---|
static class |
Decorating.DecoratingBuild<U,T>
|
static class |
Decorating.DecoratingVisitor<U,T>
|
static class |
Decorating.DecoratingWith<T>
|
Method Summary | ||
---|---|---|
static
|
proxy(Class<T> type)
Creates a factory for proxy instances that allow decoration. |
|
static
|
proxy(Class<T> primaryType,
Class<?>... types)
Creates a factory for proxy instances that allow decoration. |
|
static
|
proxy(U delegate)
Creates a factory for proxy instances that allow decoration. |
|
static
|
proxy(U delegate,
Class<T> type)
Creates a factory for proxy instances that allow decoration. |
|
static
|
proxy(U delegate,
Class<T> primaryType,
Class<?>... types)
Creates a factory for proxy instances that allow decoration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Decorating.DecoratingWith<T> proxy(Class<T> type)
public static <T> Decorating.DecoratingWith<T> proxy(Class<T> primaryType, Class<?>... types)
primaryType
- the primary type implemented by the proxytypes
- other types that are implemented by the proxy
public static <U> Decorating.DecoratingVisitor<U,U> proxy(U delegate)
delegate
- the delegate
public static <U,T> Decorating.DecoratingVisitor<U,T> proxy(U delegate, Class<T> type)
delegate
- the delegatetype
- the type of the proxy when it is finally created.
public static <U,T> Decorating.DecoratingVisitor<U,T> proxy(U delegate, Class<T> primaryType, Class<?>... types)
delegate
- the delegateprimaryType
- the primary type implemented by the proxytypes
- other types that are implemented by the proxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |