Package org.apache.camel.builder
Class ErrorHandlerBuilderRef
- java.lang.Object
-
- org.apache.camel.builder.ErrorHandlerBuilderSupport
-
- org.apache.camel.builder.ErrorHandlerBuilderRef
-
- All Implemented Interfaces:
ErrorHandlerBuilder
,org.apache.camel.ErrorHandlerFactory
,ErrorHandlerRefProperties
public class ErrorHandlerBuilderRef extends ErrorHandlerBuilderSupport implements ErrorHandlerRefProperties
Represents a proxy to an error handler builder which is resolved by named reference
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ERROR_HANDLER_BUILDER
-
Constructor Summary
Constructors Constructor Description ErrorHandlerBuilderRef()
ErrorHandlerBuilderRef(String ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorHandlerBuilder
cloneBuilder()
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others.protected void
cloneBuilder(ErrorHandlerBuilderRef other)
String
getRef()
boolean
isSupportTransacted()
void
setRef(String ref)
void
setSupportTransacted(boolean supportTransacted)
boolean
supportTransacted()
Whether this error handler supports transacted exchanges.String
toString()
-
-
-
Field Detail
-
DEFAULT_ERROR_HANDLER_BUILDER
public static final String DEFAULT_ERROR_HANDLER_BUILDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ErrorHandlerBuilderRef
public ErrorHandlerBuilderRef()
-
ErrorHandlerBuilderRef
public ErrorHandlerBuilderRef(String ref)
-
-
Method Detail
-
supportTransacted
public boolean supportTransacted()
Description copied from interface:ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.- Specified by:
supportTransacted
in interfaceErrorHandlerBuilder
- Overrides:
supportTransacted
in classErrorHandlerBuilderSupport
-
cloneBuilder
public ErrorHandlerBuilder cloneBuilder()
Description copied from interface:ErrorHandlerBuilder
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others. This is needed by the current Camel 2.x architecture.- Specified by:
cloneBuilder
in interfaceErrorHandlerBuilder
- Returns:
- a clone of this
ErrorHandlerBuilder
-
cloneBuilder
protected void cloneBuilder(ErrorHandlerBuilderRef other)
-
getRef
public String getRef()
- Specified by:
getRef
in interfaceErrorHandlerRefProperties
-
setRef
public void setRef(String ref)
- Specified by:
setRef
in interfaceErrorHandlerRefProperties
-
isSupportTransacted
public boolean isSupportTransacted()
- Specified by:
isSupportTransacted
in interfaceErrorHandlerRefProperties
-
setSupportTransacted
public void setSupportTransacted(boolean supportTransacted)
- Specified by:
setSupportTransacted
in interfaceErrorHandlerRefProperties
-
-