How to specify enum in osgi blueprint xml? -


i m trying use dependency injection osgi blueprint.
want construct enum object/s specifying in xml dsl.

in spring context xml -

 <bean id="mytestenum" class="com.foo.testenum"         factory-method="valueof">         <constructor-arg>             <value>typea</value>         </constructor-arg>     </bean> 

how achieve in osgi blueprint xml file? see schema validation error @ tag..

appreciate pointers!

thanks.

try replacing constructor-arg block with

 <argument value="typea"/> 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -