Interface ILoadOnDemandPolicy.Registry
-
- All Known Implementing Classes:
LoadOnDemandPolicyRegistryImpl
- Enclosing interface:
- ILoadOnDemandPolicy
public static interface ILoadOnDemandPolicy.RegistryA registry of policy. It can be asked if it contains at least one policy authorizing an URI to be loaded on demand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILoadOnDemandPolicyaddPolicy(ILoadOnDemandPolicy policy)Add the givenpolicyto this registry.voidclear()Removes all of the registered policies.List<ILoadOnDemandPolicy>getPolicies()Returns the list of registered policies.booleanhasAnyAuthorizingPolicy(URI uri)Returns true if at least one of the contained policy is authorizing the given policy to be loaded on demand.ILoadOnDemandPolicyremovePolicy(String className)Removes the policy registered within this registry with the given class name.
-
-
-
Method Detail
-
hasAnyAuthorizingPolicy
boolean hasAnyAuthorizingPolicy(URI uri)
Returns true if at least one of the contained policy is authorizing the given policy to be loaded on demand.- Parameters:
uri- the URI to be tested.- Returns:
- true if at least one of the contained policy is authorizing the given policy to be loaded on demand.
-
getPolicies
List<ILoadOnDemandPolicy> getPolicies()
Returns the list of registered policies.- Returns:
- the list of registered policies.
-
addPolicy
ILoadOnDemandPolicy addPolicy(ILoadOnDemandPolicy policy)
Add the givenpolicyto this registry.- Parameters:
policy- the policy to be added.- Returns:
- the previous value associated with the class name of the given
policy.
-
removePolicy
ILoadOnDemandPolicy removePolicy(String className)
Removes the policy registered within this registry with the given class name.- Parameters:
className- the class name of a previously registered policy.- Returns:
- the previously registered policy or null if none was.
-
clear
void clear()
Removes all of the registered policies.
-
-