|
Apache Neethi 3.0.2-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.AssertionBuilderFactoryImpl
public class AssertionBuilderFactoryImpl
AssertionFactory is used to create an Assertion from an Element. It uses an appropriate AssertionBuilder instance to create an Assertion based on the QName of the given element. Domain Policy authors could right custom AssertionBuilders to build Assertions for domain specific assertions.
Field Summary | |
---|---|
protected ConverterRegistry |
converters
|
protected AssertionBuilder<?> |
defaultBuilder
|
protected PolicyBuilder |
engine
|
Constructor Summary | |
---|---|
AssertionBuilderFactoryImpl(PolicyBuilder eng)
|
|
AssertionBuilderFactoryImpl(PolicyBuilder eng,
ConverterRegistry reg)
|
Method Summary | |
---|---|
Assertion |
build(Object element)
Returns an assertion that is built using the specified element. |
AssertionBuilder<?> |
getBuilder(QName qname)
Returns an AssertionBuilder that build an Assertion from an element of qname type. |
ConverterRegistry |
getConverterRegistry()
Returns the ConverterRegistry that the builder uses for converting the object to the types needed for the AssertionBuilders |
PolicyBuilder |
getPolicyEngine()
Returns the PolicyEngine associated with this factory |
protected AssertionBuilder<?> |
handleNoRegisteredBuilder(QName qname)
A subclass may want to log when an unknown assertion is encountered or possibly throw an exception or similar. |
protected void |
loadDynamic()
Touch point for subclasses that would like to dynamically load builders when policies are first encountered |
void |
registerBuilder(AssertionBuilder<?> builder)
Registers an AssertionBuilder with all the builder's known elements. |
void |
registerBuilder(QName key,
AssertionBuilder<?> builder)
Registers an AssertionBuilder with a specified QName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AssertionBuilder<?> defaultBuilder
protected ConverterRegistry converters
protected PolicyBuilder engine
Constructor Detail |
---|
public AssertionBuilderFactoryImpl(PolicyBuilder eng)
public AssertionBuilderFactoryImpl(PolicyBuilder eng, ConverterRegistry reg)
Method Detail |
---|
public ConverterRegistry getConverterRegistry()
AssertionBuilderFactory
getConverterRegistry
in interface AssertionBuilderFactory
public PolicyBuilder getPolicyEngine()
AssertionBuilderFactory
getPolicyEngine
in interface AssertionBuilderFactory
protected void loadDynamic()
public void registerBuilder(QName key, AssertionBuilder<?> builder)
registerBuilder
in interface AssertionBuilderFactory
key
- the QName that the AssertionBuilder understandbuilder
- the AssertionBuilder that can build an Assertion from
an element of specified typepublic void registerBuilder(AssertionBuilder<?> builder)
AssertionBuilderFactory
registerBuilder
in interface AssertionBuilderFactory
builder
- the AssertionBuilder that can build an Assertion from
an element of specified typepublic Assertion build(Object element)
build
in interface AssertionBuilderFactory
element
- the element that the AssertionBuilder can use to build an
Assertion.
protected AssertionBuilder<?> handleNoRegisteredBuilder(QName qname)
qname
-
public AssertionBuilder<?> getBuilder(QName qname)
getBuilder
in interface AssertionBuilderFactory
qname
- the type that the AssertionBuilder understands and builds an
Assertion from
|
Apache Neethi 3.0.2-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |