org.apache.cxf.ws.policy
Class AssertionBuilderRegistryImpl
java.lang.Object
org.apache.cxf.extension.RegistryImpl<QName,AssertionBuilder>
org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
- All Implemented Interfaces:
- BusExtension, Registry<QName,AssertionBuilder>, AssertionBuilderRegistry
public class AssertionBuilderRegistryImpl
- extends RegistryImpl<QName,AssertionBuilder>
- implements AssertionBuilderRegistry, BusExtension
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssertionBuilderRegistryImpl
public AssertionBuilderRegistryImpl()
AssertionBuilderRegistryImpl
public AssertionBuilderRegistryImpl(Bus b)
AssertionBuilderRegistryImpl
public AssertionBuilderRegistryImpl(Map<QName,AssertionBuilder> builders)
AssertionBuilderRegistryImpl
public AssertionBuilderRegistryImpl(MapProvider<QName,AssertionBuilder> builders)
AssertionBuilderRegistryImpl
public AssertionBuilderRegistryImpl(Bus b,
MapProvider<QName,AssertionBuilder> builders)
setBus
public final void setBus(Bus b)
getRegistrationType
public Class<?> getRegistrationType()
- Specified by:
getRegistrationType
in interface BusExtension
register
public void register(AssertionBuilder builder)
- Description copied from interface:
AssertionBuilderRegistry
- Register the builder for all qnames from the builders
getKnownElements call.
- Specified by:
register
in interface AssertionBuilderRegistry
- Parameters:
builder
- the builder to register
isIgnoreUnknownAssertions
public boolean isIgnoreUnknownAssertions()
- Description copied from interface:
AssertionBuilderRegistry
- Indicates if unknown assertions should simply be ignored.
If set to false, the policy engine will throw an exception upon
encountering an assertion type for which no AssertionBuilder
has been registered.
- Specified by:
isIgnoreUnknownAssertions
in interface AssertionBuilderRegistry
- Returns:
- false if unknown assertions will result in an exception
setIgnoreUnknownAssertions
public void setIgnoreUnknownAssertions(boolean ignore)
- Description copied from interface:
AssertionBuilderRegistry
- Indicates if unknown assertions should simply be ignored.
If set to false, the policy engine will throw an exception upon
encountering an assertion type for which no AssertionBuilder
has been registered.
- Specified by:
setIgnoreUnknownAssertions
in interface AssertionBuilderRegistry
- Parameters:
ignore
- iff unknown assertions should be ignored
build
public PolicyAssertion build(Element element)
- Description copied from interface:
AssertionBuilderRegistry
- Returns an assertion that is built using the specified xml element.
- Specified by:
build
in interface AssertionBuilderRegistry
- Parameters:
element
- the element from which to build an Assertion.
- Returns:
- an Assertion that is built using the specified element.
Apache CXF