public class Privileging<T> extends Object
com.thoughtworks.proxy.toys.privilege
Modifier and Type | Class and Description |
---|---|
static class |
Privileging.PrivilegingBuild<T> |
static class |
Privileging.PrivilegingExecutedByOrBuild<T> |
static class |
Privileging.PrivilegingWith<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Privileging.PrivilegingWith<T> |
proxy(Class<T> type)
Creates a factory for proxy instances that allow a privileged execution of the methods of an object.
|
static <T> Privileging.PrivilegingExecutedByOrBuild<T> |
proxy(T target)
Creates a factory for proxy instances that allow a privileged execution of the methods of an object.
|
public static <T> Privileging.PrivilegingWith<T> proxy(Class<T> type)
type
- the type of the proxy when it is finally created.public static <T> Privileging.PrivilegingExecutedByOrBuild<T> proxy(T target)
target
- the target object that is proxied.Copyright © 2005–2022 Codehaus. All rights reserved.