Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在osgi蓝图xml中指定枚举?_Osgi_Blueprint Osgi - Fatal编程技术网

如何在osgi蓝图xml中指定枚举?

如何在osgi蓝图xml中指定枚举?,osgi,blueprint-osgi,Osgi,Blueprint Osgi,我正在尝试将依赖项注入与OSGI蓝图结合使用。 我想通过在XML DSL中指定枚举对象来构造它 在Spring上下文XML中,这看起来像- <bean id="MyTestEnum" class="com.foo.TestEnum" factory-method="valueOf"> <constructor-arg> <value>TYPEA</value> </co

我正在尝试将依赖项注入与OSGI蓝图结合使用。
我想通过在XML DSL中指定枚举对象来构造它

在Spring上下文XML中,这看起来像-

 <bean id="MyTestEnum" class="com.foo.TestEnum"
        factory-method="valueOf">
        <constructor-arg>
            <value>TYPEA</value>
        </constructor-arg>
    </bean>

A型
如何在OSGI蓝图XML文件中实现这一点?我在标记处看到架构验证错误

感谢你的指点


谢谢。

尝试将
构造函数arg
块替换为

 <argument value="TYPEA"/>