GlobalSelector, ThreadLocalSelectorContextual instead.@Deprecated
public abstract class Selector<T>
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Selector.Getter<T> |
Deprecated.
An efficient, unchecked getter for a selector for a given class.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
Selector() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract T |
get() |
Deprecated.
Get the currently relevant object, or
null if there is none. |
static SelectorPermission |
getChangePermissionFor(java.lang.Class<?> clazz) |
Deprecated.
Get the
change permission for the given class. |
static SelectorPermission |
getGetPermissionFor(java.lang.Class<?> clazz) |
Deprecated.
Get the
get permission for the given class. |
static SelectorPermission |
getSetPermissionFor(java.lang.Class<?> clazz) |
Deprecated.
Get the
set permission for the given class. |
static <T> Selector<T> |
nullSelector() |
Deprecated.
Get the
null selector. |
static <T> Selector<T> |
selectorFor(java.lang.Class<T> clazz) |
Deprecated.
Get the selector for a given class.
|
static <T> java.security.PrivilegedAction<Selector.Getter<T>> |
selectorGetterActionFor(java.lang.Class<T> clazz) |
Deprecated.
Get a privileged action which returns the getter for a selector.
|
static <T> Selector.Getter<T> |
selectorGetterFor(java.lang.Class<T> clazz) |
Deprecated.
Get an efficient, unchecked selector getter for a given class.
|
static <T> void |
setSelectorFor(java.lang.Class<T> clazz,
Selector<T> selector) |
Deprecated.
Set the selector for a given class.
|
public abstract T get()
null if there is none.public static <T> Selector<T> nullSelector()
null selector. This selector always returns null.T - the selectable class' typenull selectorpublic static <T> Selector<T> selectorFor(java.lang.Class<T> clazz)
null. If there is a selector set, the caller must
have the get SelectorPermission for the class.T - the class typeclazz - the classnull)public static <T> void setSelectorFor(java.lang.Class<T> clazz,
Selector<T> selector)
set SelectorPermission for that class.
If there is one set, the caller must have the change SelectorPermission. If there is a selector
set, and it is identical to the proposed selector, this method returns without taking any action.T - the class typeclazz - the classselector - the selector to set for the classpublic static <T> Selector.Getter<T> selectorGetterFor(java.lang.Class<T> clazz)
get
SelectorPermission for the class.T - the class typeclazz - the classpublic static <T> java.security.PrivilegedAction<Selector.Getter<T>> selectorGetterActionFor(java.lang.Class<T> clazz)
T - the class typeclazz - the classpublic static SelectorPermission getGetPermissionFor(java.lang.Class<?> clazz)
get permission for the given class. The permission is cached.clazz - the class to get the permission forpublic static SelectorPermission getSetPermissionFor(java.lang.Class<?> clazz)
set permission for the given class. The permission is cached.clazz - the class to get the permission forpublic static SelectorPermission getChangePermissionFor(java.lang.Class<?> clazz)
change permission for the given class. The permission is cached.clazz - the class to get the permission forCopyright © 2017 JBoss, a division of Red Hat, Inc.