public interface PolicyContextHandler
http://java.sun.com/j2ee/1.4/docs/api/
Modifier and Type | Method and Description |
---|---|
Object |
getContext(String key,
Object data)
Used by the PolicyContext class to activate the handler and obtain from
it the context object identified by the given key.
|
String[] |
getKeys()
Get the keys identifying the context objects supported by this handlers
getContext(String, Object) method.
|
boolean |
supports(String key)
Query the handler to see if its getContext(String, Object) method
supports the given key.
|
Object getContext(String key, Object data) throws PolicyContextException
key
- - a non-null key indicating which context to return.data
- - the possiblye null handler data Object associated with the
thread on which the call to this method has been made.PolicyContextException
String[] getKeys() throws PolicyContextException
PolicyContextException
boolean supports(String key) throws PolicyContextException
key
- - the context object key to check.PolicyContextException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.