org.hibernate.validator.util.privilegedactions
Class NewInstance<T>
java.lang.Object
org.hibernate.validator.util.privilegedactions.NewInstance<T>
- All Implemented Interfaces:
- PrivilegedAction<T>
public final class NewInstance<T>
- extends Object
- implements PrivilegedAction<T>
Execute instance creation as privileged action.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
action
public static <T> NewInstance<T> action(Class<T> clazz,
String message)
run
public T run()
- Specified by:
run
in interface PrivilegedAction<T>
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved