spring - Need some help reusing an existing (java-based) IoC container for my project -


i'm working on development of library depends heavily on xml based configuration files. these files describe process workflow contains variables , references java objects have different scopes. extremely simplified pseudo configuration be:

<config>     <valueproducer name="thingthatproducesavalue" class="org.com.blah" method="foo" args="arg1, arg2" scope="application" />     <var name="v" scope="process" value="${thingthatproducesavalue}" />      <process step="somethingimportant">         <write value="${v}" to="a_file_somewhere">         <write value="${v}" to="a_queue">     </process> </config> 

basically configuration defines that: 1 - instance of class "org.com.blah" created , reused while application running (pretty if singleton) 2 - variable named "v", when used somewhere, populated result of value producer named "thingthatproducesavalue" 2.1 - value of "v" evaluated once during execution of process "somethingimportant", , reused subsequently, until end of process.

i looking java based ioc container can programmatically configured, , offers sort of support custom management of scoped entities. had on spring seems difficult without using own configuration file format or annotatinos. requirement create engine capable of reading xml in peculiar format , perform value replacements , class/method invocations, great essential stuff , work on top of library available. have suggestions?

you can implement spring's custom namespace handler.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -