org.jboss.seam.jms.bridge
Interface Route


public interface Route

Routing configuration between CDI and JMS.

Author:
Jordan Ganoff

Method Summary
 Route addAnnotatedParameter(AnnotatedParameter<?> ap)
           
 Route addDestinationJndiName(String jndi)
           
 Route addDestinationQualifiers(Set<Annotation> qualifiers)
           
 Route addDestinations(Collection<Destination> d)
          Adds a collection of destinations to this route.
 Route addDestinations(Destination... d)
          Add multiple destinations to this route
 Route addQualifiers(Annotation... qualifiers)
          Apply the qualifiers listed to this route.
 Route addQualifiers(Collection<Annotation> q)
          Apply the collection of qualifiers to this route.
 void build(BeanManager beanManager)
           
<D extends Destination>
Route
connectTo(Class<D> d, D destination)
          Connect this route to a destination.
 Set<AnnotatedParameter<?>> getAnnotatedParameters()
           
 Set<String> getDestinationJndiNames()
           
 List<Set<Annotation>> getDestinationQualifiers()
           
 Set<? extends Destination> getDestinations()
           
 Type getPayloadType()
           
 Set<Annotation> getQualifiers()
           
 RouteType getType()
           
 void setDestinations(Collection<Destination> destinations)
           
 Route setType(Type type)
           
 boolean validate()
           
 

Method Detail

connectTo

<D extends Destination> Route connectTo(Class<D> d,
                                        D destination)
Connect this route to a destination. Multiple destinations may be defined.

Type Parameters:
D - Destination type
Parameters:
d - Destination type (e.g. javax.jms.Topic)
destination - Destination to connect this route to
Returns:
this

addDestinations

Route addDestinations(Destination... d)
Add multiple destinations to this route

Parameters:
d - destinations to be added.
Returns:
this

addDestinations

Route addDestinations(Collection<Destination> d)
Adds a collection of destinations to this route.

Parameters:
d - Destinations to be added
Returns:
this

addQualifiers

Route addQualifiers(Annotation... qualifiers)
Apply the qualifiers listed to this route.

Parameters:
qualifiers - Qualifiers for the payload type
Returns:
this

addQualifiers

Route addQualifiers(Collection<Annotation> q)
Apply the collection of qualifiers to this route.

Parameters:
q - qualifiers to be added
Returns:
this

getType

RouteType getType()
Returns:
the routing type

getPayloadType

Type getPayloadType()
Returns:
the type this route routes

getQualifiers

Set<Annotation> getQualifiers()
Returns:
the qualifiers

getDestinations

Set<? extends Destination> getDestinations()
Returns:
The destinations involved in this routing

getDestinationJndiNames

Set<String> getDestinationJndiNames()

setDestinations

void setDestinations(Collection<Destination> destinations)

getDestinationQualifiers

List<Set<Annotation>> getDestinationQualifiers()

addDestinationQualifiers

Route addDestinationQualifiers(Set<Annotation> qualifiers)

addAnnotatedParameter

Route addAnnotatedParameter(AnnotatedParameter<?> ap)

getAnnotatedParameters

Set<AnnotatedParameter<?>> getAnnotatedParameters()

addDestinationJndiName

Route addDestinationJndiName(String jndi)

setType

Route setType(Type type)

validate

boolean validate()

build

void build(BeanManager beanManager)


Copyright © 2011 Seam Framework. All Rights Reserved.