Builder<JavaxElPolicyExecutor>public static class JavaxElPolicyExecutor.Builder extends java.lang.Object implements Builder<JavaxElPolicyExecutor>
JavaxElPolicyExecutor.| Modifier and Type | Method | Description |
|---|---|---|
JavaxElPolicyExecutor.Builder |
addMethod(java.lang.String localName,
java.lang.reflect.Method method) |
Add a custom method to be available in expressions without a prefix.
|
JavaxElPolicyExecutor.Builder |
addMethod(java.lang.String prefix,
java.lang.String localName,
java.lang.reflect.Method method) |
Add a custom method to be available in expressions.
|
JavaxElPolicyExecutor |
build() |
Build the instance from this builder.
|
JavaxElPolicyExecutor.Builder |
expressionFactory(javax.el.ExpressionFactory factory) |
Configure a specific expression factory to use with this executor.
|
JavaxElPolicyExecutor.Builder |
fromConfig(Config config) |
Updated builder from configuration.
|
public JavaxElPolicyExecutor build()
Builderbuild in interface Builder<JavaxElPolicyExecutor>public JavaxElPolicyExecutor.Builder expressionFactory(javax.el.ExpressionFactory factory)
factory - factory to usepublic JavaxElPolicyExecutor.Builder addMethod(java.lang.String localName, java.lang.reflect.Method method)
localName - name to call this function in an expressionmethod - method to invoke (may have parameters - these can be passed from the script)addMethod(String, String, Method)public JavaxElPolicyExecutor.Builder addMethod(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method method)
Example
prefix: fun
localName: inRole
method: public static boolean isSubjectInRole(Subject subject, String roleName)
expression: "${fun:inRole(user, "some_role"}"
prefix - prefix to use before the name in an expressionlocalName - name to call this function in an expressionmethod - method to invoke (may have parameters - these can be passed from the script)public JavaxElPolicyExecutor.Builder fromConfig(Config config)
config - configuration to update fromCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.