org.apache.camel.model
Class AOPDefinition

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedDefinition<Type>
      extended by org.apache.camel.model.ProcessorDefinition<Type>
          extended by org.apache.camel.model.OutputDefinition<AOPDefinition>
              extended by org.apache.camel.model.AOPDefinition
All Implemented Interfaces:
Block, NamedNode

Deprecated. will be removed in the future. You can for example use Processor and InterceptStrategy to do AOP in Camel.

@Deprecated
public class AOPDefinition
extends OutputDefinition<AOPDefinition>

Represents an XML <aop/> element

Version:

Field Summary
 
Fields inherited from class org.apache.camel.model.OutputDefinition
outputs
 
Fields inherited from class org.apache.camel.model.ProcessorDefinition
inheritErrorHandler, log
 
Constructor Summary
AOPDefinition()
          Deprecated.  
 
Method Summary
 AOPDefinition after(String afterUri)
          Deprecated. Uses a AOP after.
 AOPDefinition afterFinally(String afterUri)
          Deprecated. Uses a AOP after with after being invoked in a finally block.
 AOPDefinition around(String beforeUri, String afterUri)
          Deprecated. Uses a AOP around.
 AOPDefinition aroundFinally(String beforeUri, String afterUri)
          Deprecated. Uses a AOP around with after being invoked in a finally block
 AOPDefinition before(String beforeUri)
          Deprecated. Uses a AOP before.
 Processor createProcessor(RouteContext routeContext)
          Deprecated. Override this in definition class and implement logic to create the processor based on the definition model.
 String getAfterFinallyUri()
          Deprecated.  
 String getAfterUri()
          Deprecated.  
 String getBeforeUri()
          Deprecated.  
 String getLabel()
          Deprecated. Returns a label to describe this node such as the expression if some kind of expression node
 String getShortName()
          Deprecated. Returns a short name for this node which can be useful for ID generation or referring to related resources like images
 void setAfterFinallyUri(String afterFinallyUri)
          Deprecated.  
 void setAfterUri(String afterUri)
          Deprecated.  
 void setBeforeUri(String beforeUri)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class org.apache.camel.model.OutputDefinition
getOutputs, isOutputSupported, setOutputs
 
Methods inherited from class org.apache.camel.model.ProcessorDefinition
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, enrich, enrich, enrichRef, filter, filter, filter, filter, getInterceptStrategies, getNodeFactory, getOtherAttributes, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, loadBalance, loadBalance, log, log, log, log, loop, loop, loop, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, preCreateProcessor, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperty, resequence, resequence, resolveKnownConstantFields, resolvePropertyPlaceholders, rollback, rollback, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setNodeFactory, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, stop, threads, threads, threads, threads, throttle, throttle, throwException, to, to, to, to, to, to, to, to, to, to, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AOPDefinition

public AOPDefinition()
Deprecated. 
Method Detail

toString

public String toString()
Deprecated. 
Overrides:
toString in class OutputDefinition<AOPDefinition>

getBeforeUri

public String getBeforeUri()
Deprecated. 

setBeforeUri

public void setBeforeUri(String beforeUri)
Deprecated. 

getAfterUri

public String getAfterUri()
Deprecated. 

setAfterUri

public void setAfterUri(String afterUri)
Deprecated. 

getAfterFinallyUri

public String getAfterFinallyUri()
Deprecated. 

setAfterFinallyUri

public void setAfterFinallyUri(String afterFinallyUri)
Deprecated. 

getShortName

public String getShortName()
Deprecated. 
Description copied from class: OptionalIdentifiedDefinition
Returns a short name for this node which can be useful for ID generation or referring to related resources like images

Specified by:
getShortName in interface NamedNode
Overrides:
getShortName in class OutputDefinition<AOPDefinition>
Returns:
defaults to "node" but derived nodes should overload this to provide a unique name

getLabel

public String getLabel()
Deprecated. 
Description copied from class: ProcessorDefinition
Returns a label to describe this node such as the expression if some kind of expression node

Overrides:
getLabel in class ProcessorDefinition<AOPDefinition>

createProcessor

public Processor createProcessor(RouteContext routeContext)
                          throws Exception
Deprecated. 
Description copied from class: ProcessorDefinition
Override this in definition class and implement logic to create the processor based on the definition model.

Overrides:
createProcessor in class ProcessorDefinition<AOPDefinition>
Throws:
Exception

around

public AOPDefinition around(String beforeUri,
                            String afterUri)
Deprecated. 
Uses a AOP around.

Parameters:
beforeUri - the uri of the before endpoint
afterUri - the uri of the after endpoint
Returns:
the builder

aroundFinally

public AOPDefinition aroundFinally(String beforeUri,
                                   String afterUri)
Deprecated. 
Uses a AOP around with after being invoked in a finally block

Parameters:
beforeUri - the uri of the before endpoint
afterUri - the uri of the after endpoint
Returns:
the builder

before

public AOPDefinition before(String beforeUri)
Deprecated. 
Uses a AOP before.

Parameters:
beforeUri - the uri of the before endpoint
Returns:
the builder

after

public AOPDefinition after(String afterUri)
Deprecated. 
Uses a AOP after.

Parameters:
afterUri - the uri of the after endpoint
Returns:
the builder

afterFinally

public AOPDefinition afterFinally(String afterUri)
Deprecated. 
Uses a AOP after with after being invoked in a finally block.

Parameters:
afterUri - the uri of the after endpoint
Returns:
the builder


Apache CAMEL