Hi all,
I have a Spring-managed bean (Application-scoped, or a singleton in the Spring world) that has properties within it that are a list of objects.
I'd like to configure those objects in XML if that is possible without too much effort.
If I declare them as a bean, then I can inject them, but I don't want them to be Spring-managed beans, the configuration is longer, and there is additional overhead associated with making them beans (memory + cpu cycles).
In JBoss Seam, Jetty, I can instantiate components like so:
<New class="" id="">
<Arg/>
<Arg>
<New class=""/>
</Arg>
</New>
In JBoss Seam:
<mypackage:class-name id="someComponent">
<component:property name="items">
<mypackage:other-class-name title="The Great Gatsby" pages="201"/>
</...>
</...>
I want the main item to be a component / bean, but not the inner components. I just want those to be anonymous, no lifecycle associated with them other than the lifecycle inherited from their parent.
The inner items would be mypackage:other-class-name and the New within the Arg element.
Thanks,
Walter