Interface CloseablePolicyProvider<PE extends TopLevelPolicyElementEvaluator>
-
- Type Parameters:
PE
- type of returned PolicyEvaluator
- All Superinterfaces:
AutoCloseable
,Closeable
,PolicyProvider<PE>
- All Known Subinterfaces:
CloseableStaticPolicyProvider
- All Known Implementing Classes:
BaseStaticPolicyProvider
public interface CloseablePolicyProvider<PE extends TopLevelPolicyElementEvaluator> extends PolicyProvider<PE>, Closeable
PolicyProvider
that implementsCloseable
because it may use resources external to the JVM such as a cache, a disk, a connection to a remote server, etc. for retrieving the policies. Therefore, these resources must be release by callingCloseable.close()
when it is no longer needed.PDP extensions of this type (to support new ways of providing policies by reference) must implement the
CloseablePolicyProvider.Factory
class
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CloseablePolicyProvider.Factory<CONF_T extends org.ow2.authzforce.xmlns.pdp.ext.AbstractPolicyProvider>
PolicyProvider factory
-
Field Summary
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.policy.PolicyProvider
NULL_POLICYREF_CHAIN1_ARGUMENT_EXCEPTION, UNLIMITED_POLICY_REF_DEPTH
-
-
Method Summary
-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.policy.PolicyProvider
get, getCandidateRootPolicy, joinPolicyRefChains
-
-