You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by David Primmer <da...@gmail.com> on 2008/05/13 02:34:15 UTC

adding feature to get the route from the target

I'm using RouteManager and I'd like to have the pattern that was
matched and preferably the route object available to my Adapter.
RouteManager.getTarget() returns a Target object, hiding its richer
RouteTarget object. I'd love to have the RouteTarget available, and
just access it's getRoute. Or, we could extended the Target interface
to allow something like getPattern, as this would be compatible with
regex targets as well.

What do you think?

davep

Re: adding feature to get the route from the target

Posted by James M Snell <ja...@gmail.com>.
+1.  Target can be modified to return the matching artifact.

- James

David Primmer wrote:
> I'm using RouteManager and I'd like to have the pattern that was
> matched and preferably the route object available to my Adapter.
> RouteManager.getTarget() returns a Target object, hiding its richer
> RouteTarget object. I'd love to have the RouteTarget available, and
> just access it's getRoute. Or, we could extended the Target interface
> to allow something like getPattern, as this would be compatible with
> regex targets as well.
> 
> What do you think?
> 
> davep
>