public class Privileging<T>
extends java.lang.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 | Field and Description |
|---|---|
private java.lang.Object |
delegate |
private ActionExecutor |
executor |
private java.lang.Class<T> |
type |
| Modifier | Constructor and Description |
|---|---|
private |
Privileging(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Privileging.PrivilegingWith<T> |
proxy(java.lang.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.
|
private java.lang.Class<T> type
private java.lang.Object delegate
private ActionExecutor executor
private Privileging(java.lang.Class<T> type)
public static <T> Privileging.PrivilegingWith<T> proxy(java.lang.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.