public class LoadOnDemandPolicyRegistryImpl extends Object implements ILoadOnDemandPolicy.Registry
Constructor and Description |
---|
LoadOnDemandPolicyRegistryImpl()
Creates a new implementation.
|
Modifier and Type | Method and Description |
---|---|
ILoadOnDemandPolicy |
addPolicy(ILoadOnDemandPolicy policy)
Add the given
policy to this registry. |
void |
clear()
Removes all of the registered policies.
|
List<ILoadOnDemandPolicy> |
getPolicies()
Returns the list of registered policies.
|
boolean |
hasAnyAuthorizingPolicy(URI uri)
Returns true if at least one of the contained policy is authorizing the given policy to be loaded
on demand.
|
ILoadOnDemandPolicy |
removePolicy(String className)
Removes the policy registered within this registry with the given class name.
|
public LoadOnDemandPolicyRegistryImpl()
public boolean hasAnyAuthorizingPolicy(URI uri)
hasAnyAuthorizingPolicy
in interface ILoadOnDemandPolicy.Registry
uri
- the URI to be tested.ILoadOnDemandPolicy.Registry.hasAnyAuthorizingPolicy(org.eclipse.emf.common.util.URI)
public List<ILoadOnDemandPolicy> getPolicies()
getPolicies
in interface ILoadOnDemandPolicy.Registry
ILoadOnDemandPolicy.Registry.getPolicies()
public ILoadOnDemandPolicy addPolicy(ILoadOnDemandPolicy policy)
policy
to this registry.addPolicy
in interface ILoadOnDemandPolicy.Registry
policy
- the policy to be added.policy
.ILoadOnDemandPolicy.Registry.addPolicy(org.eclipse.emf.compare.rcp.policy.ILoadOnDemandPolicy)
public ILoadOnDemandPolicy removePolicy(String className)
removePolicy
in interface ILoadOnDemandPolicy.Registry
className
- the class name of a previously registered policy.ILoadOnDemandPolicy.Registry.removePolicy(java.lang.String)
public void clear()
clear
in interface ILoadOnDemandPolicy.Registry
ILoadOnDemandPolicy.Registry.clear()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.