made receive and onReceive final in Producer

This commit is contained in:
RayRoestenburg 2012-07-23 01:35:59 +02:00
parent 6ba8d39e06
commit 9ac24ee4d7
2 changed files with 3 additions and 3 deletions

View file

@ -125,10 +125,10 @@ trait ProducerSupport extends CamelSupport { this: Actor ⇒
trait Producer extends ProducerSupport { this: Actor
/**
* Default implementation of Actor.receive. Any messages received by this actors
* Implementation of Actor.receive. Any messages received by this actor
* will be produced to the endpoint specified by <code>endpointUri</code>.
*/
def receive: Actor.Receive = produce
final def receive: Actor.Receive = produce
}
/**

View file

@ -47,7 +47,7 @@ abstract class UntypedProducerActor extends UntypedActor with ProducerSupport {
/**
* Default implementation of UntypedActor.onReceive
*/
def onReceive(message: Any): Unit = produce(message)
final def onReceive(message: Any): Unit = produce(message)
/**
* Returns the Camel endpoint URI to produce messages to.