Apache CXF API

org.apache.cxf.ws.policy
Class AssertionBuilderRegistryImpl

java.lang.Object
  extended by org.apache.cxf.extension.RegistryImpl<QName,AssertionBuilder>
      extended by org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
All Implemented Interfaces:
BusExtension, Registry<QName,AssertionBuilder>, AssertionBuilderRegistry

public class AssertionBuilderRegistryImpl
extends RegistryImpl<QName,AssertionBuilder>
implements AssertionBuilderRegistry, BusExtension


Field Summary
 
Fields inherited from class org.apache.cxf.extension.RegistryImpl
entries
 
Constructor Summary
AssertionBuilderRegistryImpl()
           
AssertionBuilderRegistryImpl(Bus b)
           
AssertionBuilderRegistryImpl(Bus b, MapProvider<QName,AssertionBuilder> builders)
           
AssertionBuilderRegistryImpl(Map<QName,AssertionBuilder> builders)
           
AssertionBuilderRegistryImpl(MapProvider<QName,AssertionBuilder> builders)
           
 
Method Summary
 PolicyAssertion build(Element element)
          Returns an assertion that is built using the specified xml element.
 Class<?> getRegistrationType()
           
 boolean isIgnoreUnknownAssertions()
          Indicates if unknown assertions should simply be ignored.
 void register(AssertionBuilder builder)
          Register the builder for all qnames from the builders getKnownElements call.
 void setBus(Bus b)
           
 void setIgnoreUnknownAssertions(boolean ignore)
          Indicates if unknown assertions should simply be ignored.
 
Methods inherited from class org.apache.cxf.extension.RegistryImpl
get, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.extension.Registry
get, register, unregister
 

Constructor Detail

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)
Method Detail

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 API

Apache CXF