aries-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lin Sun <>
Subject Re: Add custom lifecycle management
Date Fri, 18 Jun 2010 16:39:09 GMT

Aries already has this bean Interceptor concept that allows you to
specify precall before the method is invoked and specify postCall
after the method is invoked, see the Interceptor interface.

Aries also has an example in transaction-blueprint project where it
specifies a custom name space for transaction blueprint and allow
users to intercept attribute with certain transaction attribute on
bean method invocations.

for example -

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns=""
     <bean id="TestBeanImpl" class="org.apache.aries.simple.TestBeanImpl">
        <tx:transaction method="insertRow" value="required"/>


basically asks the blueprint container to manage required transaction
attribute/strategy on insertRow method invocation.

Is this similar as what you want to do, except you want to do it with logging?



On Fri, Jun 18, 2010 at 12:19 PM, Norman Maurer <> wrote:
> Hi all,
> I'm very new to Aries and wonder if its possible to add some kind of
> "PostBeanProcessor" (this is how it get called in spring). We at JAMES
> use spring at the moment to wire up our application as standalone
> application. Now we are working on "osgify" JAMES. We need to
> implement some kind of lifecycle methods. For example if a "service"
> implements LogEnabled interface it need to get a Log injected. The
> same is true for other dependencies.. We use JSR250 annotations, so we
> would need to handle this kind of stuff. I did some tests with
> spring-dm the last weeks and it seems to work but aries looks very
> interesting too.
> You know, Eat your own dogfood ;)
> Thx,
> Norman

View raw message