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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -