abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: [jira] Created: (ABDERA-56) Spring Integration
Date Fri, 10 Aug 2007 23:12:24 GMT
Dan, at first glance this looks good.  The other committers might have a
different opinion, but I think the spring stuff should likely go into
the contrib module as opposed to becoming its own module or being
dropped into the server module.  Does that work for you?

I'll have to go through the rest of the changes later this weekend.

- James

Dan Diephouse (JIRA) wrote:
> Spring Integration
> ------------------
> 
>                  Key: ABDERA-56
>                  URL: https://issues.apache.org/jira/browse/ABDERA-56
>              Project: Abdera
>           Issue Type: New Feature
>             Reporter: Dan Diephouse
>              Fix For: 0.3.0
>          Attachments: spring.patch
> 
> I've written a spring module for Abdera which providers an AbderaServlet which works
with Spring as well as some XML parsers. With this creating an Abdera Provider becomes as
simple as this:
> 
>   <a:serviceContext>
>   
>     <a:provider>
>       <ref bean="provider"/>
>     </a:provider>
>     
>     <a:targetResolver>
>       <a:regexTargetResolver>
>         <a:collection>/atom/feed(\\?[^#]*)?</a:collection>
>         <a:entry>/atom/feed/([^/#?]+)(\\?[^#]*)?</a:entry>
>         <a:service>/atom(\\?[^#]*)?</a:service>
>       </a:regexTargetResolver>
>     </a:targetResolver>
>     
>   </a:serviceContext>
> 
>   <bean id="provider" class="org.apache.abdera.spring.TestProvider">
>   </bean>
> 
> The only code you need to write then is the TestProvider class.
> 
> This patch does make two other changes.
> 
> 1. It modifies the Resolver interface to add a initializeContextPath(String context)
method. This makes it so you can create target resolvers and not have to worry about the context
path when you initialize it - Abdera will just initialize it later.  I'm not sure that what
I came up with is the best way to do that though. Any other suggestions? Maybe Resolver.resolve
should take contextPath as a parameter? Maybe the request URI should come without the context
path in it?
> 
> 2. Uses the correct groupId for Woodstox in MAven
> 

Mime
View raw message