Re: Re: new XML configuration
"Eric Jain" <[email protected]> Mon, 12 May 2003 12:06:35 +0200
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Organization | Swiss Institute of Bioinformatics |
| Message-ID | <001a01c3186e$2b9e2700$c300000a@caliente> |
> The <interceptor>-tag is a shortcut for
> <aspect
> class="com.tirsen.nanning.config.InterceptorAspect>
My concern was that you might end up with config files with lots of
redundancy:
<?xml version="1.0" encoding="UTF-8"?>
<aspect-system>
<class name="A">
<interceptor class="LoggingInterceptor">
<scope>singleton</scope>
<pointcut>
<attribute>*</attribute>
</pointcut>
</interceptor>
<mixin>
<interface>TestInfo</interface>
<target>TestInfoImpl</target>
</mixin>
</class>
<class name="B">
<interceptor class="LoggingInterceptor">
<scope>singleton</scope>
<pointcut>
<attribute>*</attribute>
</pointcut>
</interceptor>
<mixin>
<interface>TestInfo</interface>
<target>TestInfoImpl</target>
</mixin>
</class>
<class name="C">
<interceptor class="LoggingInterceptor">
<scope>singleton</scope>
<pointcut>
<attribute>*</attribute>
</pointcut>
</interceptor>
<mixin>
<interface>TestInfo</interface>
<target>TestInfoImpl</target>
</mixin>
</class>
<class name="D">
<!-- LoggingInterceptor removed for performance reasons -->
<mixin>
<interface>SecurityInfo</interface>
<target>SecurityInfoImpl</target>
</mixin>
</class>
</aspect-system>
--
Eric Jain
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com