You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2009/02/17 13:33:08 UTC
svn commit: r745010 [1/6] - in /servicemix/smx4/nmr/trunk: ./ assembly/
assembly/src/main/distribution/ant/ assembly/src/main/filtered-resources/
bundle/ jbi/ jbi/deployer/
jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/
jbi/deployer/src...
Author: gnodet
Date: Tue Feb 17 12:33:05 2009
New Revision: 745010
URL: http://svn.apache.org/viewvc?rev=745010&view=rev
Log:
SMX4NMR-89: Implement the JBI boostrap mechanism
Added:
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsServiceMBean.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/NamingStrategy.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/NamingStrategy.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/AbstractLifecycleJbiArtifact.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ComponentImpl.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceAssemblyImpl.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceUnitImpl.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceUnitImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/SharedLibraryImpl.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/OsgiMultiParentClassLoader.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/OsgiMultiParentClassLoader.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/AbstractInstaller.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AbstractInstaller.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/AdminCommandsImpl.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsService.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/AdminService.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminService.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ComponentInstaller.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/DefaultNamingStrategy.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/DefaultNamingStrategy.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/DeploymentService.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/DeploymentService.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/InstallationContextImpl.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/InstallationContextImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/InstallationService.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/InstallationService.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ManagementAgent.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagementAgent.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyInstaller.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ServiceAssemblyInstaller.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryInstaller.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/SharedLibInstaller.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/DeployServiceAssemblyTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/DeployServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/InstallComponentTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/InstallComponentTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/InstallSharedLibraryTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/InstallSharedLibraryTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/JbiTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ListBindingComponentsTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListBindingComponentsTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ListServiceAssembliesTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListServiceAssembliesTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ListServiceEnginesTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListServiceEnginesTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ListSharedLibrariesTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListSharedLibrariesTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ShutDownComponentTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ShutDownComponentTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/ShutDownServiceAssemblyTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ShutDownServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/StartComponentTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StartComponentTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/StartServiceAssemblyTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StartServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/StopComponentTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StopComponentTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/StopServiceAssemblyTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StopServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/UndeployServiceAssemblyTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UndeployServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/UninstallComponentTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UninstallComponentTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/task/UninstallSharedLibraryTask.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UninstallSharedLibraryTask.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/utils/
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/utils/FileUtil.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/FileUtil.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/utils/ManagementSupport.java (contents, props changed)
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagementSupport.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/utils/QueryUtils.java
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests/
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests/IntegrationTest.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests/ManagementTest.java
- copied, changed from r744748, servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/ManagementTest.java
Removed:
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/FileUtil.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/OsgiMultiParentClassLoader.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceUnitImpl.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryImpl.java
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/IntegrationTest.java
servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/ManagementTest.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AbstractInstaller.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsService.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsServiceMBean.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminService.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ComponentInstaller.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/DefaultNamingStrategy.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/DeploymentService.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/InstallationContextImpl.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/InstallationService.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagedComponent.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagedJbiRegistry.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagedServiceAssembly.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagedSharedLibrary.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagementAgent.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ManagementSupport.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/NamingStrategy.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/ServiceAssemblyInstaller.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/SharedLibInstaller.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/DeployServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/InstallComponentTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/InstallSharedLibraryTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/JbiTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListBindingComponentsTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListServiceAssembliesTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListServiceEnginesTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ListSharedLibrariesTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ShutDownComponentTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/ShutDownServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StartComponentTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StartServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StopComponentTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/StopServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UndeployServiceAssemblyTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UninstallComponentTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/task/UninstallSharedLibraryTask.java
servicemix/smx4/nmr/trunk/jbi/management/src/main/resources/META-INF/spring/servicemix-jbi-management.xml
Modified:
servicemix/smx4/nmr/trunk/assembly/pom.xml
servicemix/smx4/nmr/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
servicemix/smx4/nmr/trunk/assembly/src/main/filtered-resources/features.xml
servicemix/smx4/nmr/trunk/bundle/pom.xml
servicemix/smx4/nmr/trunk/jbi/deployer/pom.xml
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/Component.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceAssembly.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceUnit.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/SharedLibrary.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ClassPath.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ComponentDesc.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Connections.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Provides.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ServiceAssemblyDesc.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/Builder.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/Connection.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/JBIDeploymentListener.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/Transformer.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/URLHandler.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/AbstractBundleWatcher.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/AssemblyReferencesListener.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/Deployer.java
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/resources/META-INF/spring/servicemix-jbi-deployer.xml
servicemix/smx4/nmr/trunk/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java
servicemix/smx4/nmr/trunk/jbi/itests/pom.xml
servicemix/smx4/nmr/trunk/jbi/itests/src/test/resources/org/apache/servicemix/MANIFEST.MF
servicemix/smx4/nmr/trunk/jbi/pom.xml
servicemix/smx4/nmr/trunk/jbi/runtime/src/main/java/org/apache/servicemix/jbi/runtime/impl/EnvironmentImpl.java
servicemix/smx4/nmr/trunk/pom.xml
Modified: servicemix/smx4/nmr/trunk/assembly/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/assembly/pom.xml?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/assembly/pom.xml (original)
+++ servicemix/smx4/nmr/trunk/assembly/pom.xml Tue Feb 17 12:33:05 2009
@@ -85,10 +85,6 @@
</dependency>
<dependency>
<groupId>org.apache.servicemix.jbi</groupId>
- <artifactId>org.apache.servicemix.jbi.management</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.jbi</groupId>
<artifactId>org.apache.servicemix.jbi.osgi</artifactId>
</dependency>
<dependency>
Modified: servicemix/smx4/nmr/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties (original)
+++ servicemix/smx4/nmr/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties Tue Feb 17 12:33:05 2009
@@ -16,19 +16,19 @@
#
# Servicemix Jbi Ant definitions
#
-jbi-install-component=org.apache.servicemix.jbi.management.task.InstallComponentTask
-jbi-uninstall-component=org.apache.servicemix.jbi.management.task.UninstallComponentTask
-jbi-install-shared-library=org.apache.servicemix.jbi.management.task.InstallSharedLibraryTask
-jbi-uninstall-shared-library=org.apache.servicemix.jbi.management.task.UninstallSharedLibraryTask
-jbi-start-component=org.apache.servicemix.jbi.management.task.StartComponentTask
-jbi-stop-component=org.apache.servicemix.jbi.management.task.StopComponentTask
-jbi-shut-down-component=org.apache.servicemix.jbi.management.task.ShutDownComponentTask
-jbi-deploy-service-assembly=org.apache.servicemix.jbi.management.task.DeployServiceAssemblyTask
-jbi-undeploy-service-assembly=org.apache.servicemix.jbi.management.task.UndeployServiceAssemblyTask
-jbi-start-service-assembly=org.apache.servicemix.jbi.management.task.StartServiceAssemblyTask
-jbi-stop-service-assembly=org.apache.servicemix.jbi.management.task.StopServiceAssemblyTask
-jbi-shut-down-service-assembly=org.apache.servicemix.jbi.management.task.ShutDownServiceAssemblyTask
-jbi-list-service-engines=org.apache.servicemix.jbi.management.task.ListServiceEnginesTask
-jbi-list-binding-components=org.apache.servicemix.jbi.management.task.ListBindingComponentsTask
-jbi-list-shared-libraries=org.apache.servicemix.jbi.management.task.ListSharedLibrariesTask
-jbi-list-service-assemblies=org.apache.servicemix.jbi.management.task.ListServiceAssembliesTask
+jbi-install-component=org.apache.servicemix.jbi.deployer.task.InstallComponentTask
+jbi-uninstall-component=org.apache.servicemix.jbi.deployer.task.UninstallComponentTask
+jbi-install-shared-library=org.apache.servicemix.jbi.deployer.task.InstallSharedLibraryTask
+jbi-uninstall-shared-library=org.apache.servicemix.jbi.deployer.task.UninstallSharedLibraryTask
+jbi-start-component=org.apache.servicemix.jbi.deployer.task.StartComponentTask
+jbi-stop-component=org.apache.servicemix.jbi.deployer.task.StopComponentTask
+jbi-shut-down-component=org.apache.servicemix.jbi.deployer.task.ShutDownComponentTask
+jbi-deploy-service-assembly=org.apache.servicemix.jbi.deployer.task.DeployServiceAssemblyTask
+jbi-undeploy-service-assembly=org.apache.servicemix.jbi.deployer.task.UndeployServiceAssemblyTask
+jbi-start-service-assembly=org.apache.servicemix.jbi.deployer.task.StartServiceAssemblyTask
+jbi-stop-service-assembly=org.apache.servicemix.jbi.deployer.task.StopServiceAssemblyTask
+jbi-shut-down-service-assembly=org.apache.servicemix.jbi.deployer.task.ShutDownServiceAssemblyTask
+jbi-list-service-engines=org.apache.servicemix.jbi.deployer.task.ListServiceEnginesTask
+jbi-list-binding-components=org.apache.servicemix.jbi.deployer.task.ListBindingComponentsTask
+jbi-list-shared-libraries=org.apache.servicemix.jbi.deployer.task.ListSharedLibrariesTask
+jbi-list-service-assemblies=org.apache.servicemix.jbi.deployer.task.ListServiceAssembliesTask
Modified: servicemix/smx4/nmr/trunk/assembly/src/main/filtered-resources/features.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/assembly/src/main/filtered-resources/features.xml?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/assembly/src/main/filtered-resources/features.xml (original)
+++ servicemix/smx4/nmr/trunk/assembly/src/main/filtered-resources/features.xml Tue Feb 17 12:33:05 2009
@@ -40,6 +40,5 @@
<bundle>mvn:org.apache.servicemix.jbi/org.apache.servicemix.jbi.osgi/${pom.version}</bundle>
<bundle>mvn:org.apache.servicemix.jbi/org.apache.servicemix.jbi.deployer/${pom.version}</bundle>
<bundle>mvn:org.apache.servicemix.jbi/org.apache.servicemix.jbi.commands/${pom.version}</bundle>
- <bundle>mvn:org.apache.servicemix.jbi/org.apache.servicemix.jbi.management/${pom.version}</bundle>
</feature>
</features>
Modified: servicemix/smx4/nmr/trunk/bundle/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/bundle/pom.xml?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/bundle/pom.xml (original)
+++ servicemix/smx4/nmr/trunk/bundle/pom.xml Tue Feb 17 12:33:05 2009
@@ -76,10 +76,6 @@
</dependency>
<dependency>
<groupId>org.apache.servicemix.jbi</groupId>
- <artifactId>org.apache.servicemix.jbi.management</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.jbi</groupId>
<artifactId>org.apache.servicemix.jbi.osgi</artifactId>
</dependency>
<dependency>
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/pom.xml?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/pom.xml (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/pom.xml Tue Feb 17 12:33:05 2009
@@ -58,6 +58,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.ant</artifactId>
+ <version>${ant.version}</version>
+ </dependency>
+ <dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>test</scope>
@@ -72,7 +77,7 @@
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
- <Export-Package>${pom.artifactId}*</Export-Package>
+ <Export-Package>org.apache.servicemix.jbi.deployer*,org.apache.servicemix.jbi.management*</Export-Package>
<Spring-Context>*;publish-context:=false;create-asynchronously:=false</Spring-Context>
</instructions>
</configuration>
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java (from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsServiceMBean.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java&p1=servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsServiceMBean.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/AdminCommandsServiceMBean.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java Tue Feb 17 12:33:05 2009
@@ -14,32 +14,50 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.management;
+package org.apache.servicemix.jbi.deployer;
+import java.util.Properties;
+/**
+ * Provides a simple interface to access ServiceMix administration commands.
+ */
+public interface AdminCommands {
+
+ String installComponent(String file, Properties properties, boolean deferException) throws Exception;
+
+ String uninstallComponent(String name) throws Exception;
+
+ String installSharedLibrary(String file, boolean deferException) throws Exception;
+
+ String uninstallSharedLibrary(String name) throws Exception;
+
+ String startComponent(String name) throws Exception;
+
+ String stopComponent(String name) throws Exception;
+
+ String shutdownComponent(String name) throws Exception;
+
+ String deployServiceAssembly(String file, boolean deferException) throws Exception;
+
+ String undeployServiceAssembly(String name) throws Exception;
+
+ String startServiceAssembly(String name) throws Exception;
+
+ String stopServiceAssembly(String name) throws Exception;
+
+ String shutdownServiceAssembly(String name) throws Exception;
+
+ String listComponents(boolean excludeSEs,
+ boolean excludeBCs,
+ String requiredState,
+ String sharedLibraryName,
+ String serviceAssemblyName) throws Exception;
+
+ String listSharedLibraries(String componentName,
+ String sharedLibraryName) throws Exception;
-public interface AdminCommandsServiceMBean {
- String installComponent(String file) throws Exception;
- String uninstallComponent(String name) throws Exception;
- String installSharedLibrary(String file) throws Exception;
- String uninstallSharedLibrary(String name) throws Exception;
- String startComponent(String name) throws Exception;
- String stopComponent(String name) throws Exception;
- String shutdownComponent(String name) throws Exception;
- String deployServiceAssembly(String file) throws Exception;
- String undeployServiceAssembly(String name) throws Exception;
- String startServiceAssembly(String name) throws Exception;
- String stopServiceAssembly(String name) throws Exception;
- String shutdownServiceAssembly(String name) throws Exception;
- String listComponents(boolean excludeSEs,
- boolean excludeBCs,
- String requiredState,
- String sharedLibraryName,
- String serviceAssemblyName) throws Exception;
- String listSharedLibraries(String componentName,
- String sharedLibraryName) throws Exception;
- String listServiceAssemblies(String state,
- String componentName,
- String serviceAssemblyName) throws Exception;
+ String listServiceAssemblies(String state,
+ String componentName,
+ String serviceAssemblyName) throws Exception;
}
Propchange: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/AdminCommands.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/Component.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/Component.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/Component.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/Component.java Tue Feb 17 12:33:05 2009
@@ -16,34 +16,45 @@
*/
package org.apache.servicemix.jbi.deployer;
-import javax.jbi.management.ComponentLifeCycleMBean;
import javax.jbi.JBIException;
+import javax.jbi.management.ComponentLifeCycleMBean;
/**
- * Represents a JBI component.
+ * This interface represents a JBI Component and will be registered in
+ * the OSGi registry
*/
public interface Component extends ComponentLifeCycleMBean {
/**
* Retrieves the name of this service assembly
+ *
* @return the name
*/
String getName();
/**
* Retrieves the description of this service assembly
+ *
* @return the description
*/
String getDescription();
/**
+ * Return the type of this component (service-engine or binding-component)
+ *
+ * @return the type
+ */
+ String getType();
+
+ /**
* Access to the JBI component
+ *
* @return
*/
javax.jbi.component.Component getComponent();
/**
- * Retrieve the ServiceUnits deployed on this component
+ * Retrieve the ServiceUnits deployed on this component
*/
ServiceUnit[] getServiceUnits();
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/NamingStrategy.java (from r744748, servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/NamingStrategy.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/NamingStrategy.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/NamingStrategy.java&p1=servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/NamingStrategy.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/management/src/main/java/org/apache/servicemix/jbi/management/NamingStrategy.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/NamingStrategy.java Tue Feb 17 12:33:05 2009
@@ -14,24 +14,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.management;
+package org.apache.servicemix.jbi.deployer;
-import javax.management.ObjectName;
import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
/**
*/
public interface NamingStrategy {
- ObjectName getObjectName(ManagedSharedLibrary sharedLibrary) throws MalformedObjectNameException;
+ ObjectName getObjectName(SharedLibrary sharedLibrary) throws MalformedObjectNameException;
+
+ ObjectName getObjectName(Component component) throws MalformedObjectNameException;
- ObjectName getObjectName(ManagedComponent component) throws MalformedObjectNameException;
+ ObjectName getObjectName(ServiceAssembly serviceAssembly) throws MalformedObjectNameException;
+
+ ObjectName getObjectName(AdminCommands adminCommandsService) throws MalformedObjectNameException;
- ObjectName getObjectName(ManagedServiceAssembly serviceAssembly) throws MalformedObjectNameException;
-
- ObjectName getObjectName(AdminCommandsServiceMBean adminCommandsService) throws MalformedObjectNameException;
-
ObjectName createCustomComponentMBeanName(String type, String name);
-
+
String getJmxDomainName();
}
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceAssembly.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceAssembly.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceAssembly.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceAssembly.java Tue Feb 17 12:33:05 2009
@@ -27,18 +27,28 @@
/**
* Retrieves the name of this service assembly
+ *
* @return the name
*/
String getName();
/**
* Retrieves the description of this service assembly
+ *
* @return the description
*/
String getDescription();
/**
+ * Retrieve the JBI descriptor for this service assembly
+ *
+ * @return the JBI descriptor
+ */
+ String getDescriptor();
+
+ /**
* Get the list of service units included in this Service Assembly
+ *
* @return
*/
ServiceUnit[] getServiceUnits();
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceUnit.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceUnit.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceUnit.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/ServiceUnit.java Tue Feb 17 12:33:05 2009
@@ -16,33 +16,36 @@
*/
package org.apache.servicemix.jbi.deployer;
-import java.io.File;
-
-import javax.jbi.JBIException;
-
-
+/**
+ * This interface represents a JBI Service Unit and will be registered in
+ * the OSGi registry
+ */
public interface ServiceUnit {
-
+
/**
* Retrieves the name of this service assembly
+ *
* @return the name
*/
String getName();
/**
* Retrieves the description of this service assembly
+ *
* @return the description
*/
String getDescription();
/**
* Get the ServiceAssembly to which this ServiceUnit belongs
+ *
* @return
*/
ServiceAssembly getServiceAssembly();
/**
* Retrieve the Component onto which this ServiceUnit is deployed
+ *
* @return
*/
Component getComponent();
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/SharedLibrary.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/SharedLibrary.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/SharedLibrary.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/SharedLibrary.java Tue Feb 17 12:33:05 2009
@@ -24,26 +24,30 @@
/**
* Retrieves the name of this shared library
+ *
* @return the name
*/
String getName();
/**
* Retrieves the description of this shared library
+ *
* @return the description
*/
String getDescription();
/**
* Retrieves the version of this shared library
+ *
* @return the version
*/
String getVersion();
/**
* Create a classloader for this shared library
+ *
* @return a new classloader
*/
ClassLoader getClassLoader();
-
+
}
Added: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/AbstractLifecycleJbiArtifact.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/AbstractLifecycleJbiArtifact.java?rev=745010&view=auto
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/AbstractLifecycleJbiArtifact.java (added)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/AbstractLifecycleJbiArtifact.java Tue Feb 17 12:33:05 2009
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.jbi.deployer.artifacts;
+
+import javax.jbi.management.LifeCycleMBean;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class AbstractLifecycleJbiArtifact {
+
+ public static final String STATE = "state";
+
+ public enum State {
+ Unknown,
+ Initialized,
+ Started,
+ Stopped,
+ Shutdown,
+ }
+
+ protected final Log LOGGER = LogFactory.getLog(getClass());
+
+ protected State state = State.Unknown;
+ protected Preferences prefs;
+ protected State runningState;
+
+ public State getState() {
+ return state;
+ }
+
+ public String getCurrentState() {
+ switch (state) {
+ case Started:
+ return LifeCycleMBean.STARTED;
+ case Stopped:
+ return LifeCycleMBean.STOPPED;
+ case Initialized:
+ case Shutdown:
+ return LifeCycleMBean.SHUTDOWN;
+ default:
+ return LifeCycleMBean.UNKNOWN;
+ }
+ }
+
+ protected void saveState() {
+ this.prefs.put(STATE, state.name());
+ try {
+ this.prefs.flush();
+ } catch (BackingStoreException e) {
+ LOGGER.warn("Unable to persist state", e);
+ }
+ }
+
+}
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ComponentImpl.java (from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentImpl.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ComponentImpl.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ComponentImpl.java&p1=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentImpl.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentImpl.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ComponentImpl.java Tue Feb 17 12:33:05 2009
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.deployer.impl;
+package org.apache.servicemix.jbi.deployer.artifacts;
import java.util.ArrayList;
import java.util.HashSet;
@@ -25,7 +25,6 @@
import javax.jbi.component.ComponentContext;
import javax.jbi.component.ComponentLifeCycle;
import javax.jbi.component.ServiceUnitManager;
-import javax.jbi.management.LifeCycleMBean;
import javax.jbi.messaging.MessageExchange;
import javax.jbi.servicedesc.ServiceEndpoint;
import javax.management.ObjectName;
@@ -33,50 +32,32 @@
import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.apache.servicemix.jbi.deployer.Component;
import org.apache.servicemix.jbi.deployer.ServiceUnit;
import org.apache.servicemix.jbi.deployer.descriptor.ComponentDesc;
import org.apache.servicemix.jbi.deployer.descriptor.SharedLibraryList;
import org.apache.servicemix.jbi.runtime.ComponentWrapper;
-import org.osgi.service.prefs.BackingStoreException;
import org.osgi.service.prefs.Preferences;
/**
*/
-public class ComponentImpl implements Component, ComponentWrapper {
-
- private static final Log LOGGER = LogFactory.getLog(ComponentImpl.class);
-
- public static final String STATE = "state";
-
- public enum State {
- Unknown,
- Initialized,
- Started,
- Stopped,
- Shutdown,
- }
+public class ComponentImpl extends AbstractLifecycleJbiArtifact implements Component, ComponentWrapper {
private ComponentDesc componentDesc;
private javax.jbi.component.Component component;
- private State state = State.Unknown;
- private Preferences prefs;
- private State runningState;
- private Deployer deployer;
private List<ServiceUnitImpl> serviceUnits;
+ private Runnable callback;
public ComponentImpl(ComponentDesc componentDesc,
javax.jbi.component.Component component,
Preferences prefs,
boolean autoStart,
- Deployer deployer) {
+ Runnable callback) {
this.componentDesc = componentDesc;
this.component = new ComponentWrapper(component);
this.prefs = prefs;
this.runningState = State.valueOf(this.prefs.get(STATE, (autoStart ? State.Started : State.Shutdown).name()));
- this.deployer = deployer;
+ this.callback = callback;
this.serviceUnits = new ArrayList<ServiceUnitImpl>();
}
@@ -100,6 +81,10 @@
return componentDesc.getIdentification().getDescription();
}
+ public String getType() {
+ return componentDesc.getType();
+ }
+
public ObjectName getExtensionMBeanName() throws JBIException {
return component.getLifeCycle().getExtensionMBeanName();
}
@@ -137,7 +122,7 @@
}
return sas;
}
-
+
public SharedLibraryList[] getSharedLibraries() {
return componentDesc.getSharedLibraries();
}
@@ -190,33 +175,6 @@
}
}
- private void saveState() {
- this.prefs.put(STATE, state.name());
- try {
- this.prefs.flush();
- } catch (BackingStoreException e) {
- LOGGER.warn("Unable to persist state", e);
- }
- }
-
- public String getCurrentState() {
- switch (state) {
- case Started:
- return LifeCycleMBean.STARTED;
- case Stopped:
- return LifeCycleMBean.STOPPED;
- case Initialized:
- case Shutdown:
- return LifeCycleMBean.SHUTDOWN;
- default:
- return LifeCycleMBean.UNKNOWN;
- }
- }
-
- public State getState() {
- return state;
- }
-
protected class ComponentWrapper implements javax.jbi.component.Component, ComponentLifeCycle {
private javax.jbi.component.Component component;
private ComponentLifeCycle lifeCycle;
@@ -292,7 +250,9 @@
lifeCycle.init(context);
state = State.Initialized;
}
- deployer.checkPendingBundles();
+ if (callback != null) {
+ callback.run();
+ }
} finally {
Thread.currentThread().setContextClassLoader(cl);
}
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceAssemblyImpl.java (from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyImpl.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceAssemblyImpl.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceAssemblyImpl.java&p1=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyImpl.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceAssemblyImpl.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceAssemblyImpl.java Tue Feb 17 12:33:05 2009
@@ -14,60 +14,43 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.deployer.impl;
+package org.apache.servicemix.jbi.deployer.artifacts;
+import java.net.URL;
import java.util.ArrayList;
import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
import javax.jbi.JBIException;
-import javax.jbi.management.LifeCycleMBean;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.apache.servicemix.jbi.deployer.ServiceAssembly;
import org.apache.servicemix.jbi.deployer.ServiceUnit;
+import org.apache.servicemix.jbi.deployer.descriptor.DescriptorFactory;
import org.apache.servicemix.jbi.deployer.descriptor.ServiceAssemblyDesc;
-import org.apache.servicemix.nmr.api.event.EndpointListener;
-import org.apache.servicemix.nmr.api.internal.InternalEndpoint;
+import org.apache.servicemix.jbi.deployer.impl.AssemblyReferencesListener;
+import org.osgi.framework.Bundle;
import org.osgi.service.prefs.Preferences;
-import org.osgi.service.prefs.BackingStoreException;
/**
* ServiceAssembly object
*/
-public class ServiceAssemblyImpl implements ServiceAssembly {
+public class ServiceAssemblyImpl extends AbstractLifecycleJbiArtifact implements ServiceAssembly {
- private static final Log LOGGER = LogFactory.getLog(ServiceAssemblyImpl.class);
+ private final Bundle bundle;
- private static final String STATE = "state";
-
- protected enum State {
- Unknown,
- Initialized,
- Started,
- Stopped,
- Shutdown,
- }
-
- private final ServiceAssemblyDesc serviceAssemblyDesc;
+ private final ServiceAssemblyDesc serviceAssemblyDesc;
private final List<ServiceUnitImpl> serviceUnits;
- private final Preferences prefs;
-
private final AssemblyReferencesListener listener;
- private State runningState;
-
- private State state = State.Unknown;
-
- public ServiceAssemblyImpl(ServiceAssemblyDesc serviceAssemblyDesc,
+ public ServiceAssemblyImpl(Bundle bundle,
+ ServiceAssemblyDesc serviceAssemblyDesc,
List<ServiceUnitImpl> serviceUnits,
Preferences prefs,
AssemblyReferencesListener listener,
boolean autoStart) {
- this.serviceAssemblyDesc = serviceAssemblyDesc;
+ this.bundle = bundle;
+ this.serviceAssemblyDesc = serviceAssemblyDesc;
this.serviceUnits = serviceUnits;
this.prefs = prefs;
this.listener = listener;
@@ -77,34 +60,21 @@
}
}
- public String getName() {
- return serviceAssemblyDesc.getIdentification().getName();
- }
+ public String getName() {
+ return serviceAssemblyDesc.getIdentification().getName();
+ }
public String getDescription() {
return serviceAssemblyDesc.getIdentification().getDescription();
}
- public ServiceUnit[] getServiceUnits() {
- return serviceUnits.toArray(new ServiceUnit[serviceUnits.size()]);
- }
-
- public State getState() {
- return state;
+ public String getDescriptor() {
+ URL url = bundle.getResource(DescriptorFactory.DESCRIPTOR_FILE);
+ return DescriptorFactory.getDescriptorAsText(url);
}
- public String getCurrentState() {
- switch (state) {
- case Started:
- return LifeCycleMBean.STARTED;
- case Stopped:
- return LifeCycleMBean.STOPPED;
- case Initialized:
- case Shutdown:
- return LifeCycleMBean.SHUTDOWN;
- default:
- return LifeCycleMBean.UNKNOWN;
- }
+ public ServiceUnit[] getServiceUnits() {
+ return serviceUnits.toArray(new ServiceUnit[serviceUnits.size()]);
}
public synchronized void init() throws JBIException {
@@ -124,7 +94,7 @@
}
}
- public void start() throws JBIException {
+ public void start() throws JBIException {
start(true);
}
@@ -148,7 +118,7 @@
public void stop() throws JBIException {
stop(true);
- }
+ }
public synchronized void stop(boolean persist) throws JBIException {
listener.setAssembly(this);
@@ -188,7 +158,7 @@
transition(State.Stopped);
}
if (!force) {
- for (;;) {
+ for (; ;) {
try {
listener.waitFor(this);
break;
@@ -206,15 +176,6 @@
}
}
- private void saveState() {
- this.prefs.put(STATE, state.name());
- try {
- this.prefs.flush();
- } catch (BackingStoreException e) {
- LOGGER.warn("Unable to persist state", e);
- }
- }
-
protected void transition(State to) throws JBIException {
LOGGER.info("Changing SA state to " + to);
State from = state;
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceUnitImpl.java (from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceUnitImpl.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceUnitImpl.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceUnitImpl.java&p1=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceUnitImpl.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ServiceUnitImpl.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/ServiceUnitImpl.java Tue Feb 17 12:33:05 2009
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.deployer.impl;
+package org.apache.servicemix.jbi.deployer.artifacts;
import java.io.File;
@@ -27,43 +27,42 @@
import org.apache.servicemix.jbi.deployer.Component;
import org.apache.servicemix.jbi.deployer.ServiceAssembly;
import org.apache.servicemix.jbi.deployer.ServiceUnit;
-import org.apache.servicemix.jbi.deployer.SharedLibrary;
import org.apache.servicemix.jbi.deployer.descriptor.ServiceUnitDesc;
public class ServiceUnitImpl implements ServiceUnit {
-
- private static final Log Logger = LogFactory.getLog(ServiceUnitImpl.class);
-
- private ServiceUnitDesc serviceUnitDesc;
-
- private File rootDir;
-
- private ComponentImpl component;
+
+ protected final Log LOGGER = LogFactory.getLog(getClass());
+
+ private ServiceUnitDesc serviceUnitDesc;
+
+ private File rootDir;
+
+ private ComponentImpl component;
private ServiceAssemblyImpl serviceAssembly;
public ServiceUnitImpl(ServiceUnitDesc serviceUnitDesc, File rootDir, ComponentImpl component) {
- this.serviceUnitDesc = serviceUnitDesc;
- this.rootDir = rootDir;
+ this.serviceUnitDesc = serviceUnitDesc;
+ this.rootDir = rootDir;
this.component = component;
}
- public String getKey() {
- return getComponentName() + "/" + getName();
- }
-
- public String getName() {
- return serviceUnitDesc.getIdentification().getName();
- }
+ public String getKey() {
+ return getComponentName() + "/" + getName();
+ }
+
+ public String getName() {
+ return serviceUnitDesc.getIdentification().getName();
+ }
public String getDescription() {
return serviceUnitDesc.getIdentification().getDescription();
}
public String getComponentName() {
- return serviceUnitDesc.getTarget().getComponentName();
- }
+ return serviceUnitDesc.getTarget().getComponentName();
+ }
public ServiceAssembly getServiceAssembly() {
return serviceAssembly;
@@ -82,24 +81,24 @@
}
public File getRootDir() {
- return rootDir;
- }
+ return rootDir;
+ }
public void deploy() throws JBIException {
component.getComponent().getServiceUnitManager().deploy(getName(), getRootDir() != null ? getRootDir().getAbsolutePath() : null);
component.addServiceUnit(this);
}
- public void init() throws JBIException {
+ public void init() throws JBIException {
component.getComponent().getServiceUnitManager().init(getName(), getRootDir() != null ? getRootDir().getAbsolutePath() : null);
- }
-
- public void start() throws JBIException {
+ }
+
+ public void start() throws JBIException {
checkComponentStarted("start");
component.getComponent().getServiceUnitManager().start(getName());
}
- public void stop() throws JBIException {
+ public void stop() throws JBIException {
checkComponentStarted("stop");
component.getComponent().getServiceUnitManager().stop(getName());
}
@@ -119,7 +118,7 @@
throw new DeploymentException("Component " + component.getName() + " is not started!");
}
}
-
+
protected void checkComponentStartedOrStopped(String task) throws DeploymentException {
if (!ComponentLifeCycleMBean.STARTED.equals(component.getCurrentState())
&& !ComponentLifeCycleMBean.STOPPED.equals(component.getCurrentState())) {
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/SharedLibraryImpl.java (from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryImpl.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/SharedLibraryImpl.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/SharedLibraryImpl.java&p1=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryImpl.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/SharedLibraryImpl.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/artifacts/SharedLibraryImpl.java Tue Feb 17 12:33:05 2009
@@ -14,18 +14,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.deployer.impl;
+package org.apache.servicemix.jbi.deployer.artifacts;
-import java.net.URL;
import java.net.MalformedURLException;
-import java.util.List;
+import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
+import java.util.List;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.apache.servicemix.jbi.deployer.SharedLibrary;
+import org.apache.servicemix.jbi.deployer.classloader.OsgiMultiParentClassLoader;
import org.apache.servicemix.jbi.deployer.descriptor.ClassPath;
import org.apache.servicemix.jbi.deployer.descriptor.SharedLibraryDesc;
-import org.apache.xbean.classloader.MultiParentClassLoader;
import org.osgi.framework.Bundle;
import org.springframework.osgi.util.BundleDelegatingClassLoader;
@@ -34,6 +36,8 @@
*/
public class SharedLibraryImpl implements SharedLibrary {
+ protected final Log LOGGER = LogFactory.getLog(getClass());
+
private SharedLibraryDesc library;
private Bundle bundle;
private ClassLoader classLoader;
@@ -63,13 +67,13 @@
ClassPath cp = library.getSharedLibraryClassPath();
String[] classPathNames = cp.getPathElements();
List<URL> urls = new ArrayList<URL>();
- for (int i = 0; i < classPathNames.length; i++) {
- if (!".".equals(classPathNames[i])) {
- URL url = bundle.getResource(classPathNames[i]);
+ for (String classPathName : classPathNames) {
+ if (!".".equals(classPathName)) {
+ URL url = bundle.getResource(classPathName);
if (url == null) {
- throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" + classPathNames[i] + "'");
+ throw new IllegalArgumentException("SharedLibrary classpath entry not found: '" + classPathName + "'");
}
- Enumeration en = bundle.findEntries(classPathNames[i], null, false);
+ Enumeration en = bundle.findEntries(classPathName, null, false);
if (en != null && en.hasMoreElements()) {
try {
url = new URL(url.toString() + "/");
@@ -81,13 +85,13 @@
}
}
classLoader = new OsgiMultiParentClassLoader(
- bundle,
- library.getIdentification().getName(),
- urls.toArray(new URL[urls.size()]),
- parent,
- !parentFirst,
- new String[0],
- new String[] {"java.", "javax." });
+ bundle,
+ library.getIdentification().getName(),
+ urls.toArray(new URL[urls.size()]),
+ parent,
+ !parentFirst,
+ new String[0],
+ new String[]{"java.", "javax."});
}
return classLoader;
}
Copied: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/OsgiMultiParentClassLoader.java (from r744748, servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/OsgiMultiParentClassLoader.java)
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/OsgiMultiParentClassLoader.java?p2=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/OsgiMultiParentClassLoader.java&p1=servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/OsgiMultiParentClassLoader.java&r1=744748&r2=745010&rev=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/OsgiMultiParentClassLoader.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/classloader/OsgiMultiParentClassLoader.java Tue Feb 17 12:33:05 2009
@@ -14,16 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.servicemix.jbi.deployer.impl;
+package org.apache.servicemix.jbi.deployer.classloader;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
import java.net.URL;
import java.net.URLStreamHandlerFactory;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import java.util.ArrayList;
-import java.io.InputStream;
-import java.io.ByteArrayOutputStream;
+import org.apache.servicemix.jbi.deployer.utils.FileUtil;
import org.apache.xbean.classloader.MultiParentClassLoader;
import org.osgi.framework.Bundle;
@@ -37,11 +38,11 @@
}
public OsgiMultiParentClassLoader(Bundle bundle, String name, URL[] urls, ClassLoader parent) {
- this(bundle, name, urls, new ClassLoader[] {parent});
+ this(bundle, name, urls, new ClassLoader[]{parent});
}
public OsgiMultiParentClassLoader(Bundle bundle, String name, URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
- this(bundle, name, urls, new ClassLoader[] {parent}, factory);
+ this(bundle, name, urls, new ClassLoader[]{parent}, factory);
}
public OsgiMultiParentClassLoader(Bundle bundle, String name, URL[] urls, ClassLoader[] parents) {
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ClassPath.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ClassPath.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ClassPath.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ClassPath.java Tue Feb 17 12:33:05 2009
@@ -23,8 +23,8 @@
* The <code>jbi:classpath</code> complex type.
*/
public class ClassPath {
-
- private String[] pathElements = new String[] {};
+
+ private String[] pathElements = new String[]{};
public ClassPath() {
}
@@ -54,20 +54,20 @@
}
return true;
}
-
+
//SM-199: Hashcode method added
public int hashCode() {
if (pathElements == null) {
return 0;
}
int result = 1;
- for (int i=0;i < pathElements.length;i++) {
+ for (int i = 0; i < pathElements.length; i++) {
result = 31 * result + (pathElements[i] == null ? 0 : pathElements[i].hashCode());
}
- return result;
+ return result;
}
-
-
+
+
public String toString() {
StringBuffer buffer = new StringBuffer("ClassPath[");
for (int i = 0; i < pathElements.length; i++) {
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ComponentDesc.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ComponentDesc.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ComponentDesc.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/ComponentDesc.java Tue Feb 17 12:33:05 2009
@@ -16,8 +16,6 @@
*/
package org.apache.servicemix.jbi.deployer.descriptor;
-import org.apache.servicemix.jbi.deployer.descriptor.ClassPath;
-
/**
* The <code><jbi:component></code> element.
*/
@@ -158,6 +156,6 @@
protected boolean isSelfFirst(String text) {
return text != null && text.equalsIgnoreCase("self-first");
}
-
-
+
+
}
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Connections.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Connections.java?rev=745010&r1=745009&r2=745010&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Connections.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/Connections.java Tue Feb 17 12:33:05 2009
@@ -16,8 +16,6 @@
*/
package org.apache.servicemix.jbi.deployer.descriptor;
-import org.apache.servicemix.jbi.deployer.descriptor.Connection;
-
/**
* The <code><jbi:connections></code> element.
*/
@@ -25,11 +23,11 @@
private Connection[] connections;
- public Connection[] getConnections() {
- return connections;
- }
+ public Connection[] getConnections() {
+ return connections;
+ }
- public void setConnections(Connection[] connections) {
- this.connections = connections;
- }
+ public void setConnections(Connection[] connections) {
+ this.connections = connections;
+ }
}