|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.couriers.CourierFactory
public class CourierFactory
| Constructor Summary | |
|---|---|
protected |
CourierFactory()
|
| Method Summary | |
|---|---|
org.jboss.internal.soa.esb.couriers.InVMCourier |
addInVMCourier(InVMEpr epr)
|
static void |
deregisterCourier(TwoWayCourier courier)
Deregister the courier from the current set. |
static Courier |
getCourier(EPR toEPR)
Obtain a courier which can perform deliveries only and prime it with the "to address" (toEPR). |
static TwoWayCourier |
getCourier(EPR toEPR,
EPR replyToEPR)
Obtain a courier which can perform both deliveries and pickups and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR). |
static CourierFactory |
getInstance()
Get the CourierFactory method. |
org.jboss.internal.soa.esb.couriers.InVMCourier |
getInVMCourier(InVMEpr epr)
|
TwoWayCourier |
getMessageCourier(EPR toEPR)
Obtain a courier which can perform deliveries only and prime it with the "to address" (toEPR). |
static TwoWayCourier |
getPickupCourier(EPR replyToEPR)
Obtain a courier which can perform pickups only and prime it with the "to address" (toEPR) and the "replyTo address" (replyToEPR). |
void |
removeInVMCourier(InVMEpr epr)
|
static void |
setInstance(CourierFactory instance)
Set the CourierFactory method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CourierFactory()
| Method Detail |
|---|
public static CourierFactory getInstance()
public static void setInstance(CourierFactory instance)
instance - New factory instance.
public TwoWayCourier getMessageCourier(EPR toEPR)
throws CourierException,
MalformedEPRException
toEPR - - the 'to address', the address on where to deliverAsync a Message.
CourierException - if the specific courier implementation cannot be created.
MalformedEPRException
public static Courier getCourier(EPR toEPR)
throws CourierException,
MalformedEPRException
toEPR - - the 'to address', the address on where to deliverAsync a Message.
CourierException - if the specific courier implementation cannot be created.
MalformedEPRException
public static TwoWayCourier getPickupCourier(EPR replyToEPR)
throws CourierException,
MalformedEPRException
replyToEPR - - the 'replyTo address', the address where to deliverAsync the Message we pickup.
CourierException - if the specific courier implementation cannot be created.
MalformedEPRExceptionpublic org.jboss.internal.soa.esb.couriers.InVMCourier addInVMCourier(InVMEpr epr)
public org.jboss.internal.soa.esb.couriers.InVMCourier getInVMCourier(InVMEpr epr)
public void removeInVMCourier(InVMEpr epr)
public static TwoWayCourier getCourier(EPR toEPR,
EPR replyToEPR)
throws CourierException,
MalformedEPRException
toEPR - - the 'to address', the address on where to deliverAsync a Message.replyToEPR - - the 'replyTo address', the address where to deliverAsync the Message we pickup.
CourierException - if the specific courier implementation cannot be created.
MalformedEPRExceptionpublic static void deregisterCourier(TwoWayCourier courier)
courier - The current courier.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||