Upgrade to latest blueprint spec
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@786285 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/deployer/blueprint/src/test/resources/test.xml b/karaf/deployer/blueprint/src/test/resources/test.xml
index 3411d48..14322c1 100644
--- a/karaf/deployer/blueprint/src/test/resources/test.xml
+++ b/karaf/deployer/blueprint/src/test/resources/test.xml
@@ -54,13 +54,13 @@
</reference>
<reference id="ref2" interface="org.apache.geronimo.blueprint.sample.InterfaceA" timeout="100">
- <listener bind-method="bind" unbind-method="unbind" ref="bindingListener" />
+ <reference-listener bind-method="bind" unbind-method="unbind" ref="bindingListener" />
</reference>
<bean id="bindingListener" class="org.apache.geronimo.blueprint.sample.BindingListener"/>
<ref-list id="ref-list" interface="org.apache.geronimo.blueprint.sample.InterfaceA">
- <listener bind-method="bind" unbind-method="unbind" ref="listBindingListener" />
+ <reference-listener bind-method="bind" unbind-method="unbind" ref="listBindingListener" />
</ref-list>
<bean id="listBindingListener" class="org.apache.geronimo.blueprint.sample.BindingListener"/>
diff --git a/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java b/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java
index 2ab3aca..4b29cd7 100644
--- a/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java
+++ b/karaf/gshell/gshell-core/src/main/java/org/apache/felix/karaf/gshell/core/config/NamespaceHandler.java
@@ -182,7 +182,7 @@
MutableServiceMetadata commandService = context.createMetadata(MutableServiceMetadata.class);
commandService.setId(getName());
- commandService.addInterfaceName(Command.class.getName());
+ commandService.addInterface(Command.class.getName());
commandService.setServiceComponent(command);
context.getComponentDefinitionRegistry().registerComponentDefinition(commandService);
}
@@ -239,7 +239,7 @@
MutableServiceMetadata linkService = context.createMetadata(MutableServiceMetadata.class);
linkService.setId(getName());
- linkService.addInterfaceName(Link.class.getName());
+ linkService.addInterface(Link.class.getName());
linkService.setServiceComponent(link);
context.getComponentDefinitionRegistry().registerComponentDefinition(linkService);
}
@@ -252,7 +252,7 @@
MutableServiceMetadata aliasService = context.createMetadata(MutableServiceMetadata.class);
aliasService.setId(getName());
- aliasService.addInterfaceName(Alias.class.getName());
+ aliasService.addInterface(Alias.class.getName());
aliasService.setServiceComponent(alias);
context.getComponentDefinitionRegistry().registerComponentDefinition(aliasService);
}
diff --git a/karaf/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/vfs/config/CacheStrategyConverter.java b/karaf/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/vfs/config/CacheStrategyConverter.java
index 694209c..02dbba0 100644
--- a/karaf/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/vfs/config/CacheStrategyConverter.java
+++ b/karaf/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/vfs/config/CacheStrategyConverter.java
@@ -23,12 +23,12 @@
public class CacheStrategyConverter implements Converter {
- public boolean canConvert(Object o, Class aClass) {
- return o instanceof String && aClass == CacheStrategy.class;
+ public boolean canConvert(Object o, Object type) {
+ return o instanceof String && type == CacheStrategy.class;
}
- public Object convert(Object o, Class aClass) throws Exception {
- if (canConvert(o, aClass)) {
+ public Object convert(Object o, Object type) throws Exception {
+ if (canConvert(o, type)) {
String text = o.toString();
if (text.equalsIgnoreCase("MANUAL")) {
return CacheStrategy.MANUAL;
diff --git a/karaf/gshell/gshell-features/src/main/resources/OSGI-INF/blueprint/gshell-features.xml b/karaf/gshell/gshell-features/src/main/resources/OSGI-INF/blueprint/gshell-features.xml
index 018255d..e337afb 100644
--- a/karaf/gshell/gshell-features/src/main/resources/OSGI-INF/blueprint/gshell-features.xml
+++ b/karaf/gshell/gshell-features/src/main/resources/OSGI-INF/blueprint/gshell-features.xml
@@ -120,7 +120,7 @@
</bean>
<reference id="mbeanServer" interface="javax.management.MBeanServer" availability="optional">
- <listener ref="featureServiceRegistry" bind-method="registerMBeanServer" unbind-method="unregisterMBeanServer"/>
+ <reference-listener ref="featureServiceRegistry" bind-method="registerMBeanServer" unbind-method="unregisterMBeanServer"/>
</reference>
</blueprint>
diff --git a/karaf/gshell/gshell-run/src/main/resources/OSGI-INF/blueprint/gshell-osgi.xml b/karaf/gshell/gshell-run/src/main/resources/OSGI-INF/blueprint/gshell-osgi.xml
index 8d0676c..fa207ca 100644
--- a/karaf/gshell/gshell-run/src/main/resources/OSGI-INF/blueprint/gshell-osgi.xml
+++ b/karaf/gshell/gshell-run/src/main/resources/OSGI-INF/blueprint/gshell-osgi.xml
@@ -38,15 +38,15 @@
</bean>
<ref-list id="osgiCommands" interface="org.apache.geronimo.gshell.command.Command">
- <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/>
+ <reference-listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/>
</ref-list>
<ref-list id="osgiLinkCommands" interface="org.apache.geronimo.gshell.command.Link">
- <listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/>
+ <reference-listener ref="osgiCommandRegistry" bind-method="register" unbind-method="unregister"/>
</ref-list>
<ref-list id="osgiAliases" interface="org.apache.geronimo.gshell.command.Alias">
- <listener ref="osgiAliasRegistry" bind-method="register" unbind-method="unregister"/>
+ <reference-listener ref="osgiAliasRegistry" bind-method="register" unbind-method="unregister"/>
</ref-list>
<service ref="localShell" interface="org.apache.geronimo.gshell.shell.Shell"/>
diff --git a/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java b/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
index de73bc1..1b3dcc0 100644
--- a/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
+++ b/karaf/jaas/jaas-config/src/main/java/org/apache/felix/karaf/jaas/config/impl/NamespaceHandler.java
@@ -93,7 +93,7 @@
MutableServiceMetadata service = context.createMetadata(MutableServiceMetadata.class);
service.setId(name);
service.setServiceComponent(bean);
- service.addInterfaceName(JaasRealm.class.getName());
+ service.addInterface(JaasRealm.class.getName());
service.addServiceProperty(createValue(context, ProxyLoginModule.PROPERTY_MODULE), createValue(context, name));
return service;
}
@@ -128,7 +128,7 @@
MutableServiceMetadata service = context.createMetadata(MutableServiceMetadata.class);
service.setId(name);
service.setServiceComponent(bean);
- service.addInterfaceName(KeystoreInstance.class.getName());
+ service.addInterface(KeystoreInstance.class.getName());
return service;
}
diff --git a/karaf/jaas/jaas-config/src/main/resources/OSGI-INF/blueprint/karaf-jaas.xml b/karaf/jaas/jaas-config/src/main/resources/OSGI-INF/blueprint/karaf-jaas.xml
index 80462ce..2bf36fc 100644
--- a/karaf/jaas/jaas-config/src/main/resources/OSGI-INF/blueprint/karaf-jaas.xml
+++ b/karaf/jaas/jaas-config/src/main/resources/OSGI-INF/blueprint/karaf-jaas.xml
@@ -27,7 +27,7 @@
<ref-list id="realms"
interface="org.apache.felix.karaf.jaas.config.JaasRealm"
availability="optional">
- <listener ref="config" bind-method="register" unbind-method="unregister" />
+ <reference-listener ref="config" bind-method="register" unbind-method="unregister" />
</ref-list>
<bean id="proxyLoginModuleInitializer" class="org.apache.felix.karaf.jaas.config.impl.ProxyLoginModuleInitializer" init-method="init">
@@ -41,7 +41,7 @@
<ref-list id="keystores"
interface="org.apache.felix.karaf.jaas.config.KeystoreInstance"
availability="optional">
- <listener ref="keystoreManager" bind-method="register" unbind-method="unregister" />
+ <reference-listener ref="keystoreManager" bind-method="register" unbind-method="unregister" />
</ref-list>
<service interface="org.apache.geronimo.blueprint.NamespaceHandler">