Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Annotation

Target

Description

Resource

Field

The Resource annotation marks a resource that is needed by the application. Currently, this annotation is only supported on fields of type ComponentContext and DeliveryChannel. The component will inject the specified resource when the POJO is instanciatedinstantiated.

PostConstruct

Method

The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.

PreDestroy

Method

The PreDestroy annotation is used on methods as a callback notification to signal that the instance is in the process of being removed by the container.

The following interfaces are part of this API:

Interface

Description

MessageExchagneListener MessageExchangeListener

When the POJO implements this interface, all exchanges will be dispatched to the onMessageExchange method.

Destination

This interface can be used to define a property on the bean, annotated with the @ExchangeTarget annotation. This is a very simple API to send exchanges from a POJO. More complex use cases can use an injected DeliveryChannel directly or to create a ServiceMix client.

...