[jboss-dev] Re: jbossas -beans.xml opt

Jaikiran Pai jpai at redhat.com
Wed May 13 11:40:23 EDT 2009


What are the SomeBeanProxy and OtherBeanProxy in these examples? And 
when exactly are these "lazy" beans installed?

-Jaikiran
Ales Justin wrote:
> Aha, another thing you can use to optimize things.
> It's the lazy install of OnDemand beans.
>
> e.g.
> <bean name="SomeBean" class="org.jboss.acme.Acme" mode="On Demand"/>
>
> <lazy bean="SomeBean">
>    <interface>org.jboss.acme.IAcme<interface>
> </lazy>
>
> <bean name="DependantBean" class="org.jboss.foobar.Foobar">
>    <constructor>
>       <parameter><inject bean="SomeBeanProxy"></parameter>
>    <constructor>
> </bean>
>
> If the bean doesn't have interfaces:
>
> <bean name="OtherBean" class="org.jboss.acme.Acme" mode="On Demand"/>
>
> <lazy bean="OtherBean" exposeClass="true"/>
>
> <bean name="DependantBean" class="org.jboss.foobar.Foobar">
>    <constructor>
>       <parameter><inject bean="OtherBeanProxy"></parameter>
>    <constructor>
> </bean>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list