You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/03/24 14:24:36 UTC
svn commit: r522026 [1/10] - in /webservices/muse/trunk/modules:
osgi-bundles/muse-complete/src/org/apache/muse/complete/
osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/
osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/ osgi-...
Author: danj
Date: Sat Mar 24 06:24:32 2007
New Revision: 522026
URL: http://svn.apache.org/viewvc?view=rev&rev=522026
Log:
Updating all source files to have new license header as mandated by ASF policy.
Modified:
webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/MuseCompleteContribution.java
webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/AbstractResourceManagementImplementation.java
webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/CapabilityPair.java
webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/ResourceManagementImplementation.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/WSASOAPContribution.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/MUWSADVImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/MUWSADVImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/MUWSImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-impl/src/org/apache/muse/osgi/wsdm/muws/impl/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-impl/src/org/apache/muse/osgi/wsdm/muws/impl/MUWSImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsn-api/src/org/apache/muse/osgi/wsn/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsn-api/src/org/apache/muse/osgi/wsn/WSNImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsn-impl/src/org/apache/muse/osgi/wsn/impl/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsn-impl/src/org/apache/muse/osgi/wsn/impl/WSNImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsrf-api/src/org/apache/muse/osgi/wsrf/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsrf-api/src/org/apache/muse/osgi/wsrf/WSRFImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsrf-impl/src/org/apache/muse/osgi/wsrf/impl/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsrf-impl/src/org/apache/muse/osgi/wsrf/impl/WSRFImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsx-api/src/org/apache/muse/osgi/wsx/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsx-api/src/org/apache/muse/osgi/wsx/WSXImplementationService.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/impl/Activator.java
webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/impl/WSXImplementationService.java
webservices/muse/trunk/modules/preview/muse-platform-jaxws/src/org/apache/muse/core/platform/jaxws/JaxWsEnvironment.java
webservices/muse/trunk/modules/preview/muse-platform-jaxws/src/org/apache/muse/core/platform/jaxws/JaxWsIsolationLayer.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/AttributeNode.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/EvaluativeExpression.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/Expression.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/ExpressionFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/Fragment.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/FragmentFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/OperationResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/TextNode.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/WsrtConstants.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/CreateCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/CreateFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/DialectMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/InvalidMetadataFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/LifetimeMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/Metadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/MetadataFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/MetadataSection.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/ResourceData.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/create/WSRTMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/delete/DeleteCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/faults/InvalidExpressionFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/faults/SenderFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/faults/UnsupportedDialectFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/get/GetCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/get/GetFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/get/GetResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/metadata/MetadataCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/put/PutCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/put/PutFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/put/PutModeUnsupportedFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/put/PutValue.java
webservices/muse/trunk/modules/preview/muse-wsrt-api/src/org/apache/muse/ws/resource/transfer/put/ResourceValidationFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/addressing/WsrtMessageHeaders.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/addressing/WsrtSoapClient.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/axishandlers/action/ActionOutHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/axishandlers/headers/WsrtInHeaderHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/axishandlers/headers/WsrtOutHeaderHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/CreateHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleCreateCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleLifetimeMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleMetadataFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleMetadataSection.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/create/impl/SimpleWSRTMetadata.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/delete/impl/SimpleDeleteCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/faults/InvalidExpressionFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/faults/SenderFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/faults/UnsupportedDialectFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/GetHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/GetRequest.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/GetResponse.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/NonQNameDialectGetResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/QNameDialectGetResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/SimpleGetCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/get/impl/WstGetResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/QNameExpression.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleAttributeNode.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleExpressionFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleFragment.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleFragmentFactory.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleOperationResult.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/SimpleTextNode.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/WsrtUtils.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/impl/XPathExpression.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/message/MuseXMLInOutMessageReceiver.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/metadata/impl/SimpleMetadataCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/ElementPutValue.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/FragmentAlreadyExistsFault.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutComponent.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutHandler.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutInsertComponent.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutInsertXPathExpression.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutModifyComponent.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutQNameRequest.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutRemoveComponent.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/PutRequest.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/SetRequestPutValue.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/put/impl/SimplePutCapability.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/remote/AbstractWsrtResourceClient.java
webservices/muse/trunk/modules/preview/muse-wsrt-impl/src/org/apache/muse/ws/resource/transfer/remote/WsrtResourceClient.java
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/Activator.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/Activator.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/Activator.java Sat Mar 24 06:24:32 2007
@@ -1,40 +1,60 @@
-package org.apache.muse.complete;
-
-import java.util.Hashtable;
-
-import org.apache.muse.core.platform.osgi.util.OSGiReflectUtilHelper;
-import org.apache.muse.util.osgi.ResourceManagementImplementation;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-
-public class Activator implements BundleActivator {
-
- private org.apache.muse.core.platform.osgi.Activator delegateActivator;
- private MuseCompleteContribution museService;
-
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- delegateActivator = new org.apache.muse.core.platform.osgi.Activator();
- delegateActivator.start(context);
-
- //register contribution service
- museService = new MuseCompleteContribution(context.getBundle());
- Hashtable props = new Hashtable();
- props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, museService.getImplementationName());
- context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, museService, props);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- delegateActivator.stop(context);
- }
-
-}
+/*
+ * 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.muse.complete;
+
+import java.util.Hashtable;
+
+import org.apache.muse.core.platform.osgi.util.OSGiReflectUtilHelper;
+import org.apache.muse.util.osgi.ResourceManagementImplementation;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+
+public class Activator implements BundleActivator {
+
+ private org.apache.muse.core.platform.osgi.Activator delegateActivator;
+ private MuseCompleteContribution museService;
+
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ delegateActivator = new org.apache.muse.core.platform.osgi.Activator();
+ delegateActivator.start(context);
+
+ //register contribution service
+ museService = new MuseCompleteContribution(context.getBundle());
+ Hashtable props = new Hashtable();
+ props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, museService.getImplementationName());
+ context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, museService, props);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ delegateActivator.stop(context);
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/MuseCompleteContribution.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/MuseCompleteContribution.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/MuseCompleteContribution.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-complete/src/org/apache/muse/complete/MuseCompleteContribution.java Sat Mar 24 06:24:32 2007
@@ -1,165 +1,185 @@
-package org.apache.muse.complete;
-
-
-import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
-import org.apache.muse.util.osgi.CapabilityPair;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * WSASOAPContribution is an implementation of the <code>ResourceManagementImplementation</code>
- * service interface for the WSA SOAP bundle.
- *
- * @see ResourceManagementImplementation
- * @author Joel Hawkins (joelh)
- *
- */
-public class MuseCompleteContribution extends AbstractResourceManagementImplementation implements ServiceFactory {
- private static final String IMPLEMENTATION_NAME = "muse-complete";
-
- private static final String[] RESOURCE_SPECS = {
- "SOAP-Envelope-1_2.xsd",
- "WS-Addressing-2005_08.xsd",
- "XML-Namespace-1998.xsd",
- "WSDM-MUWS-Part2-1_1.wsdl",
- "WSDM-MUWS-TopicSpace.xml",
- "WSDM-MUWS-Part1-1_1.xsd",
- "WSDM-MUWS-Part2-1_1.xsd",
- "WSDM-MUWS-PBM.xsd",
- "WS-BaseNotification-1_3.wsdl",
- "WS-BaseNotification-1_3.xsd",
- "WS-Topics-1_3.xsd",
- "WS-BaseFaults-1_2.xsd",
- "WS-Resource-1_2.wsdl",
- "WS-Resource-1_2.xsd",
- "WS-ResourceLifetime-1_2.wsdl",
- "WS-ResourceLifetime-1_2.xsd",
- "WS-ResourceMetadataDescriptor-CD-01.wsdl",
- "WS-ResourceMetadataDescriptor-CD-01.xsd",
- "WS-ResourceProperties-1_2.wsdl",
- "WS-ResourceProperties-1_2.xsd",
- "WS-ServiceGroup-1_2.wsdl",
- "WS-ServiceGroup-1_2.xsd",
- "WS-ServiceGroupEntry-1_2.wsdl",
- "WS-MetadataExchange-2004_09.xsd"
-};
-
-
- private static final String[] capabilityURI = {
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Configuration",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/CorrelatableProperties",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Description",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Identity",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/ManageabilityCharacteristics",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Metrics",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/OperationalStatus",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/RelationshipResource",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Relationships",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/State",
- "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer",
- "http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer",
- "http://docs.oasis-open.org/wsn/bw-2/PullPoint",
- "http://docs.oasis-open.org/wsn/bw-2/PullPointCreation",
- "http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager",
- "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination",
- "http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination",
- "http://docs.oasis-open.org/wsrf/rp-2/Get",
- "http://docs.oasis-open.org/wsrf/rp-2/Set",
- "http://docs.oasis-open.org/wsrf/rp-2/Query",
- "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata",
- "http://docs.oasis-open.org/wsrf/rmd-1/ResourceMetadataCapability",
- "http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroup",
- "http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroupEntry",
- "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata"
- };
-
- private static final String[] capabilityImplementation = {
- "org.apache.muse.ws.dm.muws.adv.impl.SimpleAdvertisement",
- "org.apache.muse.ws.dm.muws.adv.impl.ServiceGroupEntryAdvertisement",
- "org.apache.muse.ws.dm.muws.adv.impl.BroadcastAdvertisement",
- "org.apache.muse.ws.dm.muws.impl.SimpleConfiguration",
- "org.apache.muse.ws.dm.muws.impl.SimpleCorrelatableProperties",
- "org.apache.muse.ws.dm.muws.impl.SimpleDescription",
- "org.apache.muse.ws.dm.muws.impl.SimpleIdentity",
- "org.apache.muse.ws.dm.muws.impl.SimpleManageabilityCharacteristics",
- "org.apache.muse.ws.dm.muws.impl.SimpleMetrics",
- "org.apache.muse.ws.dm.muws.impl.SimpleOperationalStatus",
- "org.apache.muse.ws.dm.muws.impl.SimpleRelationshipResource",
- "org.apache.muse.ws.dm.muws.impl.SimpleRelationships",
- "org.apache.muse.ws.dm.muws.impl.SimpleState",
- "org.apache.muse.ws.notification.impl.SimpleNotificationProducer",
- "org.apache.muse.ws.notification.impl.SimpleNotificationConsumer",
- "org.apache.muse.ws.notification.impl.SimplePullPoint",
- "org.apache.muse.ws.notification.impl.SimplePullPointCreation",
- "org.apache.muse.ws.notification.impl.SimpleSubscriptionManager",
- "org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination",
- "org.apache.muse.ws.resource.lifetime.impl.SimpleScheduledTermination",
- "org.apache.muse.ws.resource.properties.get.impl.SimpleGetCapability",
- "org.apache.muse.ws.resource.properties.get.impl.SimpleSetCapability",
- "org.apache.muse.ws.resource.properties.get.impl.SimpleQueryCapability",
- "org.apache.muse.ws.metadata.impl.SimpleMetadataExchange",
- "org.apache.muse.ws.resource.metadata.impl.SimpleResourceMetadataCapability",
- "org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup",
- "org.apache.muse.ws.resource.sg.impl.SimpleEntry",
- "org.apache.muse.ws.metadata.impl.SimpleMetadataExchange"
- };
-
- private static CapabilityPair[] capabilityCollection = {
- new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
- new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
- new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
- new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
- new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
- new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
- new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
- new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
- new CapabilityPair(capabilityURI[5],capabilityImplementation[5]),
- new CapabilityPair(capabilityURI[6],capabilityImplementation[6]),
- new CapabilityPair(capabilityURI[7],capabilityImplementation[7]),
- new CapabilityPair(capabilityURI[8],capabilityImplementation[8]),
- new CapabilityPair(capabilityURI[9],capabilityImplementation[9]),
- new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
- new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
- new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
- new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
- new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
- new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
- new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
- new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
- new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
- new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
- new CapabilityPair(capabilityURI[5],capabilityImplementation[5]),
- new CapabilityPair(capabilityURI[6],capabilityImplementation[6]),
- new CapabilityPair(capabilityURI[7],capabilityImplementation[7]),
- new CapabilityPair(capabilityURI[8],capabilityImplementation[8]),
- new CapabilityPair(capabilityURI[8],capabilityImplementation[8])
- };
-
-
- private static final String implementationNames[] = {
- "org.apache.muse.ws.notification.impl.NotificationProducerFilePersistence",
- "org.apache.muse.ws.resource.impl.SimpleWsResource"
- };
-
-
- public MuseCompleteContribution(Bundle bundle){
- super(bundle);
- this.implementationName = IMPLEMENTATION_NAME;
- this.resourceSpecNames = RESOURCE_SPECS;
- this.capabilityMappings = capabilityCollection;
- this.resourceImplementationNames = implementationNames;
- }
-
-
- public Object getService(Bundle bundle, ServiceRegistration registration) {
- return this;
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
- }
-
-}
+/*
+ * 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.muse.complete;
+
+
+import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
+import org.apache.muse.util.osgi.CapabilityPair;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * WSASOAPContribution is an implementation of the <code>ResourceManagementImplementation</code>
+ * service interface for the WSA SOAP bundle.
+ *
+ * @see ResourceManagementImplementation
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public class MuseCompleteContribution extends AbstractResourceManagementImplementation implements ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "muse-complete";
+
+ private static final String[] RESOURCE_SPECS = {
+ "SOAP-Envelope-1_2.xsd",
+ "WS-Addressing-2005_08.xsd",
+ "XML-Namespace-1998.xsd",
+ "WSDM-MUWS-Part2-1_1.wsdl",
+ "WSDM-MUWS-TopicSpace.xml",
+ "WSDM-MUWS-Part1-1_1.xsd",
+ "WSDM-MUWS-Part2-1_1.xsd",
+ "WSDM-MUWS-PBM.xsd",
+ "WS-BaseNotification-1_3.wsdl",
+ "WS-BaseNotification-1_3.xsd",
+ "WS-Topics-1_3.xsd",
+ "WS-BaseFaults-1_2.xsd",
+ "WS-Resource-1_2.wsdl",
+ "WS-Resource-1_2.xsd",
+ "WS-ResourceLifetime-1_2.wsdl",
+ "WS-ResourceLifetime-1_2.xsd",
+ "WS-ResourceMetadataDescriptor-CD-01.wsdl",
+ "WS-ResourceMetadataDescriptor-CD-01.xsd",
+ "WS-ResourceProperties-1_2.wsdl",
+ "WS-ResourceProperties-1_2.xsd",
+ "WS-ServiceGroup-1_2.wsdl",
+ "WS-ServiceGroup-1_2.xsd",
+ "WS-ServiceGroupEntry-1_2.wsdl",
+ "WS-MetadataExchange-2004_09.xsd"
+};
+
+
+ private static final String[] capabilityURI = {
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Configuration",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/CorrelatableProperties",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Description",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Identity",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/ManageabilityCharacteristics",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Metrics",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/OperationalStatus",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/RelationshipResource",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Relationships",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/State",
+ "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer",
+ "http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer",
+ "http://docs.oasis-open.org/wsn/bw-2/PullPoint",
+ "http://docs.oasis-open.org/wsn/bw-2/PullPointCreation",
+ "http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager",
+ "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination",
+ "http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination",
+ "http://docs.oasis-open.org/wsrf/rp-2/Get",
+ "http://docs.oasis-open.org/wsrf/rp-2/Set",
+ "http://docs.oasis-open.org/wsrf/rp-2/Query",
+ "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata",
+ "http://docs.oasis-open.org/wsrf/rmd-1/ResourceMetadataCapability",
+ "http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroup",
+ "http://docs.oasis-open.org/wsrf/sgw-2/ServiceGroupEntry",
+ "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata"
+ };
+
+ private static final String[] capabilityImplementation = {
+ "org.apache.muse.ws.dm.muws.adv.impl.SimpleAdvertisement",
+ "org.apache.muse.ws.dm.muws.adv.impl.ServiceGroupEntryAdvertisement",
+ "org.apache.muse.ws.dm.muws.adv.impl.BroadcastAdvertisement",
+ "org.apache.muse.ws.dm.muws.impl.SimpleConfiguration",
+ "org.apache.muse.ws.dm.muws.impl.SimpleCorrelatableProperties",
+ "org.apache.muse.ws.dm.muws.impl.SimpleDescription",
+ "org.apache.muse.ws.dm.muws.impl.SimpleIdentity",
+ "org.apache.muse.ws.dm.muws.impl.SimpleManageabilityCharacteristics",
+ "org.apache.muse.ws.dm.muws.impl.SimpleMetrics",
+ "org.apache.muse.ws.dm.muws.impl.SimpleOperationalStatus",
+ "org.apache.muse.ws.dm.muws.impl.SimpleRelationshipResource",
+ "org.apache.muse.ws.dm.muws.impl.SimpleRelationships",
+ "org.apache.muse.ws.dm.muws.impl.SimpleState",
+ "org.apache.muse.ws.notification.impl.SimpleNotificationProducer",
+ "org.apache.muse.ws.notification.impl.SimpleNotificationConsumer",
+ "org.apache.muse.ws.notification.impl.SimplePullPoint",
+ "org.apache.muse.ws.notification.impl.SimplePullPointCreation",
+ "org.apache.muse.ws.notification.impl.SimpleSubscriptionManager",
+ "org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination",
+ "org.apache.muse.ws.resource.lifetime.impl.SimpleScheduledTermination",
+ "org.apache.muse.ws.resource.properties.get.impl.SimpleGetCapability",
+ "org.apache.muse.ws.resource.properties.get.impl.SimpleSetCapability",
+ "org.apache.muse.ws.resource.properties.get.impl.SimpleQueryCapability",
+ "org.apache.muse.ws.metadata.impl.SimpleMetadataExchange",
+ "org.apache.muse.ws.resource.metadata.impl.SimpleResourceMetadataCapability",
+ "org.apache.muse.ws.resource.sg.impl.SimpleServiceGroup",
+ "org.apache.muse.ws.resource.sg.impl.SimpleEntry",
+ "org.apache.muse.ws.metadata.impl.SimpleMetadataExchange"
+ };
+
+ private static CapabilityPair[] capabilityCollection = {
+ new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
+ new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
+ new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
+ new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
+ new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
+ new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
+ new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
+ new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
+ new CapabilityPair(capabilityURI[5],capabilityImplementation[5]),
+ new CapabilityPair(capabilityURI[6],capabilityImplementation[6]),
+ new CapabilityPair(capabilityURI[7],capabilityImplementation[7]),
+ new CapabilityPair(capabilityURI[8],capabilityImplementation[8]),
+ new CapabilityPair(capabilityURI[9],capabilityImplementation[9]),
+ new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
+ new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
+ new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
+ new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
+ new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
+ new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
+ new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
+ new CapabilityPair(capabilityURI[2],capabilityImplementation[2]),
+ new CapabilityPair(capabilityURI[3],capabilityImplementation[3]),
+ new CapabilityPair(capabilityURI[4],capabilityImplementation[4]),
+ new CapabilityPair(capabilityURI[5],capabilityImplementation[5]),
+ new CapabilityPair(capabilityURI[6],capabilityImplementation[6]),
+ new CapabilityPair(capabilityURI[7],capabilityImplementation[7]),
+ new CapabilityPair(capabilityURI[8],capabilityImplementation[8]),
+ new CapabilityPair(capabilityURI[8],capabilityImplementation[8])
+ };
+
+
+ private static final String implementationNames[] = {
+ "org.apache.muse.ws.notification.impl.NotificationProducerFilePersistence",
+ "org.apache.muse.ws.resource.impl.SimpleWsResource"
+ };
+
+
+ public MuseCompleteContribution(Bundle bundle){
+ super(bundle);
+ this.implementationName = IMPLEMENTATION_NAME;
+ this.resourceSpecNames = RESOURCE_SPECS;
+ this.capabilityMappings = capabilityCollection;
+ this.resourceImplementationNames = implementationNames;
+ }
+
+
+ public Object getService(Bundle bundle, ServiceRegistration registration) {
+ return this;
+ }
+
+ public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/AbstractResourceManagementImplementation.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/AbstractResourceManagementImplementation.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/AbstractResourceManagementImplementation.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/AbstractResourceManagementImplementation.java Sat Mar 24 06:24:32 2007
@@ -1,53 +1,58 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.util.osgi;
-
-import org.osgi.framework.Bundle;
-
-public class AbstractResourceManagementImplementation implements
- ResourceManagementImplementation {
-
- protected Bundle bundle;
- protected String implementationName = "uninitialized";
- protected CapabilityPair capabilityMappings[] = {};
- protected String resourceImplementationNames[] = {};
- protected String resourceSpecNames[] = {};
-
- public AbstractResourceManagementImplementation(Bundle bundle){
- this.bundle = bundle;
- }
-
- public Bundle getBundle() {
- return bundle;
- }
-
- public String getImplementationName() {
- return implementationName;
- }
-
- public CapabilityPair[] getResourceCapabilityMappings() {
- return capabilityMappings;
- }
-
- public String[] getResourceImplementationNames() {
- return resourceImplementationNames;
- }
-
- public String[] getResourceSpecNames() {
- return resourceSpecNames;
- }
-
-}
+/*
+ * 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.muse.util.osgi;
+
+import org.osgi.framework.Bundle;
+
+public class AbstractResourceManagementImplementation implements
+ ResourceManagementImplementation {
+
+ protected Bundle bundle;
+ protected String implementationName = "uninitialized";
+ protected CapabilityPair capabilityMappings[] = {};
+ protected String resourceImplementationNames[] = {};
+ protected String resourceSpecNames[] = {};
+
+ public AbstractResourceManagementImplementation(Bundle bundle){
+ this.bundle = bundle;
+ }
+
+ public Bundle getBundle() {
+ return bundle;
+ }
+
+ public String getImplementationName() {
+ return implementationName;
+ }
+
+ public CapabilityPair[] getResourceCapabilityMappings() {
+ return capabilityMappings;
+ }
+
+ public String[] getResourceImplementationNames() {
+ return resourceImplementationNames;
+ }
+
+ public String[] getResourceSpecNames() {
+ return resourceSpecNames;
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/CapabilityPair.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/CapabilityPair.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/CapabilityPair.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/CapabilityPair.java Sat Mar 24 06:24:32 2007
@@ -1,25 +1,30 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.util.osgi;
-
-public class CapabilityPair {
- public CapabilityPair(String capabilityURI, String capabilityImplementation){
- this.capabilityURI = capabilityURI;
- this.capabilityImplementation = capabilityImplementation;
- }
- public String capabilityURI;
- public String capabilityImplementation;
-}
+/*
+ * 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.muse.util.osgi;
+
+public class CapabilityPair {
+ public CapabilityPair(String capabilityURI, String capabilityImplementation){
+ this.capabilityURI = capabilityURI;
+ this.capabilityImplementation = capabilityImplementation;
+ }
+ public String capabilityURI;
+ public String capabilityImplementation;
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/ResourceManagementImplementation.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/ResourceManagementImplementation.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/ResourceManagementImplementation.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-util-all/src/org/apache/muse/util/osgi/ResourceManagementImplementation.java Sat Mar 24 06:24:32 2007
@@ -1,57 +1,61 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.util.osgi;
-
-import org.apache.muse.util.osgi.CapabilityPair;
-import org.osgi.framework.Bundle;
-
-/**
- * ResourceManagementImplementation is an interface for registering Muse contributions
- * provided by a bundle. Use this interface to register extensions that your bundle may
- * want to share with other bundles. Services implementing this interface will be consumed
- * by the <code>OSGiReflectUtilHelper</code>. Examples can be found in the OSGi packaging
- * of the Muse API and IMPL bundles.
- *
- * @see org.apache.muse.core.platform.osgi.util.OSGiReflectUtilHelper
- * @see org.apache.muse.osgi.wsdm.muws.MUWSImplementationService
- * @see org.apache.muse.osgi.wsdm.muws.impl.MUWSImplementationService
- * @author Joel Hawkins (joelh)
- *
- */
-public interface ResourceManagementImplementation {
- public static final String IMPLEMENTATION_NAME = "implementation";
-
- /**
- * returns the implementation name for the contributing bundle.
- */
- String getImplementationName();
- /**
- * returns an array of Resource Implementation Class names.
- */
- String[] getResourceImplementationNames();
- /**
- * returns an Array of Capability URI/Capability Implementation Class name pairs.
- */
- CapabilityPair[] getResourceCapabilityMappings();
- /**
- * returns an array of Specification Resource names (typically schema or wsdl file names)
- */
- String[] getResourceSpecNames();
-
- Bundle getBundle();
-
-}
+/*
+ * 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.muse.util.osgi;
+
+import org.apache.muse.util.osgi.CapabilityPair;
+import org.osgi.framework.Bundle;
+
+/**
+ * ResourceManagementImplementation is an interface for registering Muse contributions
+ * provided by a bundle. Use this interface to register extensions that your bundle may
+ * want to share with other bundles. Services implementing this interface will be consumed
+ * by the <code>OSGiReflectUtilHelper</code>. Examples can be found in the OSGi packaging
+ * of the Muse API and IMPL bundles.
+ *
+ * @see org.apache.muse.core.platform.osgi.util.OSGiReflectUtilHelper
+ * @see org.apache.muse.osgi.wsdm.muws.MUWSImplementationService
+ * @see org.apache.muse.osgi.wsdm.muws.impl.MUWSImplementationService
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public interface ResourceManagementImplementation {
+ public static final String IMPLEMENTATION_NAME = "implementation";
+
+ /**
+ * returns the implementation name for the contributing bundle.
+ */
+ String getImplementationName();
+ /**
+ * returns an array of Resource Implementation Class names.
+ */
+ String[] getResourceImplementationNames();
+ /**
+ * returns an Array of Capability URI/Capability Implementation Class name pairs.
+ */
+ CapabilityPair[] getResourceCapabilityMappings();
+ /**
+ * returns an array of Specification Resource names (typically schema or wsdl file names)
+ */
+ String[] getResourceSpecNames();
+
+ Bundle getBundle();
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/Activator.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/Activator.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/Activator.java Sat Mar 24 06:24:32 2007
@@ -1,38 +1,58 @@
-package org.apache.muse.ws.addressing.osgi;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import java.util.Hashtable;
-import org.apache.muse.util.osgi.ResourceManagementImplementation;
-import org.apache.muse.ws.addressing.osgi.WSASOAPContribution;
-
-/**
- *
- * Activator is ...
- *
- * @author Joel Hawkins (joelh)
- *
- */
-
-public class Activator implements BundleActivator {
-
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- WSASOAPContribution contribution = new WSASOAPContribution(context.getBundle());
- Hashtable props = new Hashtable();
- props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, contribution.getImplementationName());
- context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, contribution, props);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- }
-
-}
+/*
+ * 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.muse.ws.addressing.osgi;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import java.util.Hashtable;
+import org.apache.muse.util.osgi.ResourceManagementImplementation;
+import org.apache.muse.ws.addressing.osgi.WSASOAPContribution;
+
+/**
+ *
+ * Activator is ...
+ *
+ * @author Joel Hawkins (joelh)
+ *
+ */
+
+public class Activator implements BundleActivator {
+
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ WSASOAPContribution contribution = new WSASOAPContribution(context.getBundle());
+ Hashtable props = new Hashtable();
+ props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, contribution.getImplementationName());
+ context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, contribution, props);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/WSASOAPContribution.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/WSASOAPContribution.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/WSASOAPContribution.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsa-soap/src/org/apache/muse/ws/addressing/osgi/WSASOAPContribution.java Sat Mar 24 06:24:32 2007
@@ -1,41 +1,61 @@
-package org.apache.muse.ws.addressing.osgi;
-
-
-import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * WSASOAPContribution is an implementation of the <code>ResourceManagementImplementation</code>
- * service interface for the WSA SOAP bundle.
- *
- * @see ResourceManagementImplementation
- * @author Joel Hawkins (joelh)
- *
- */
-public class WSASOAPContribution extends AbstractResourceManagementImplementation implements ServiceFactory {
- private static final String IMPLEMENTATION_NAME = "wsa-soap";
-
- private static final String[] RESOURCE_SPECS = {
- "SOAP-Envelope-1_2.xsd",
- "WS-Addressing-2005_08.xsd",
- "XML-Namespace-1998.xsd"
- };
-
-
- public WSASOAPContribution(Bundle bundle){
- super(bundle);
- this.implementationName = IMPLEMENTATION_NAME;
- this.resourceSpecNames = RESOURCE_SPECS;
- }
-
-
- public Object getService(Bundle bundle, ServiceRegistration registration) {
- return this;
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
- }
-
-}
+/*
+ * 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.muse.ws.addressing.osgi;
+
+
+import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * WSASOAPContribution is an implementation of the <code>ResourceManagementImplementation</code>
+ * service interface for the WSA SOAP bundle.
+ *
+ * @see ResourceManagementImplementation
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public class WSASOAPContribution extends AbstractResourceManagementImplementation implements ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "wsa-soap";
+
+ private static final String[] RESOURCE_SPECS = {
+ "SOAP-Envelope-1_2.xsd",
+ "WS-Addressing-2005_08.xsd",
+ "XML-Namespace-1998.xsd"
+ };
+
+
+ public WSASOAPContribution(Bundle bundle){
+ super(bundle);
+ this.implementationName = IMPLEMENTATION_NAME;
+ this.resourceSpecNames = RESOURCE_SPECS;
+ }
+
+
+ public Object getService(Bundle bundle, ServiceRegistration registration) {
+ return this;
+ }
+
+ public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/Activator.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/Activator.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/Activator.java Sat Mar 24 06:24:32 2007
@@ -1,54 +1,58 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.ws.dm.muws.adv;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import java.util.Hashtable;
-import org.apache.muse.util.osgi.ResourceManagementImplementation;
-
-/**
- *
- * Activator is ...
- *
- * @author Joel Hawkins (joelh)
- *
- */
-
-public class Activator implements BundleActivator {
-
- private MUWSADVImplementationService advService;
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- advService = new MUWSADVImplementationService(context.getBundle());
- Hashtable props = new Hashtable();
- props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, advService.getImplementationName());
- context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, advService, props);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- }
-
-}
+/*
+ * 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.muse.osgi.ws.dm.muws.adv;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import java.util.Hashtable;
+import org.apache.muse.util.osgi.ResourceManagementImplementation;
+
+/**
+ *
+ * Activator is ...
+ *
+ * @author Joel Hawkins (joelh)
+ *
+ */
+
+public class Activator implements BundleActivator {
+
+ private MUWSADVImplementationService advService;
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ advService = new MUWSADVImplementationService(context.getBundle());
+ Hashtable props = new Hashtable();
+ props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, advService.getImplementationName());
+ context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, advService, props);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/MUWSADVImplementationService.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/MUWSADVImplementationService.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/MUWSADVImplementationService.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-api/src/org/apache/muse/osgi/ws/dm/muws/adv/MUWSADVImplementationService.java Sat Mar 24 06:24:32 2007
@@ -1,50 +1,55 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.ws.dm.muws.adv;
-
-import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * MUWSADVImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
- * service interface for the MUWS Advertisement APi bundle.
- *
- * @see ResourceManagementImplementation
- * @author Joel Hawkins (joelh)
- *
- */
-public class MUWSADVImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
- private static final String IMPLEMENTATION_NAME = "muws_adv";
-
-
- public MUWSADVImplementationService(Bundle bundle){
- super(bundle);
- this.implementationName = IMPLEMENTATION_NAME;
- }
-
- public String getImplementationName() {
- return IMPLEMENTATION_NAME;
- }
-
- public Object getService(Bundle bundle, ServiceRegistration registration) {
- return this;
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
- }
-}
+/*
+ * 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.muse.osgi.ws.dm.muws.adv;
+
+import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * MUWSADVImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
+ * service interface for the MUWS Advertisement APi bundle.
+ *
+ * @see ResourceManagementImplementation
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public class MUWSADVImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "muws_adv";
+
+
+ public MUWSADVImplementationService(Bundle bundle){
+ super(bundle);
+ this.implementationName = IMPLEMENTATION_NAME;
+ }
+
+ public String getImplementationName() {
+ return IMPLEMENTATION_NAME;
+ }
+
+ public Object getService(Bundle bundle, ServiceRegistration registration) {
+ return this;
+ }
+
+ public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
+ }
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/Activator.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/Activator.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/Activator.java Sat Mar 24 06:24:32 2007
@@ -1,54 +1,58 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.ws.dm.muws.adv.impl;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import java.util.Hashtable;
-import org.apache.muse.util.osgi.ResourceManagementImplementation;
-
-/**
- *
- * Activator is ...
- *
- * @author Joel Hawkins (joelh)
- *
- */
-
-public class Activator implements BundleActivator {
-
- private MUWSADVImplementationService advService;
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- advService = new MUWSADVImplementationService(context.getBundle());
- Hashtable props = new Hashtable();
- props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, advService.getImplementationName());
- context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, advService, props);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- }
-
-}
+/*
+ * 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.muse.osgi.ws.dm.muws.adv.impl;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import java.util.Hashtable;
+import org.apache.muse.util.osgi.ResourceManagementImplementation;
+
+/**
+ *
+ * Activator is ...
+ *
+ * @author Joel Hawkins (joelh)
+ *
+ */
+
+public class Activator implements BundleActivator {
+
+ private MUWSADVImplementationService advService;
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ advService = new MUWSADVImplementationService(context.getBundle());
+ Hashtable props = new Hashtable();
+ props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, advService.getImplementationName());
+ context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, advService, props);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/MUWSADVImplementationService.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/MUWSADVImplementationService.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/MUWSADVImplementationService.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-adv-impl/src/org/apache/muse/osgi/ws/dm/muws/adv/impl/MUWSADVImplementationService.java Sat Mar 24 06:24:32 2007
@@ -1,66 +1,70 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.ws.dm.muws.adv.impl;
-
-import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
-import org.apache.muse.util.osgi.CapabilityPair;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * MUWSADVImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
- * service interface for the MUWS Advertisement Implementation bundle.
- *
- * @see ResourceManagementImplementation
- * @author Joel Hawkins (joelh)
- *
- */
-public class MUWSADVImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
- private static final String IMPLEMENTATION_NAME = "muws_adv_impl";
-
- private static final String[] capabilityURI = {
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
- "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement"
- };
-
- private static final String[] capabilityImplementation = {
- "org.apache.muse.ws.dm.muws.adv.impl.SimpleAdvertisement",
- "org.apache.muse.ws.dm.muws.adv.impl.ServiceGroupEntryAdvertisement",
- "org.apache.muse.ws.dm.muws.adv.impl.BroadcastAdvertisement"
- };
-
- private static CapabilityPair[] capabilityCollection = {
- new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
- new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
- new CapabilityPair(capabilityURI[2],capabilityImplementation[2])
- };
-
- public MUWSADVImplementationService(Bundle bundle){
- super(bundle);
- this.implementationName = IMPLEMENTATION_NAME;
- this.capabilityMappings = capabilityCollection;
- }
-
- public Object getService(Bundle bundle, ServiceRegistration registration) {
- return this;
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
- }
-}
+/*
+ * 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.muse.osgi.ws.dm.muws.adv.impl;
+
+import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
+import org.apache.muse.util.osgi.CapabilityPair;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * MUWSADVImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
+ * service interface for the MUWS Advertisement Implementation bundle.
+ *
+ * @see ResourceManagementImplementation
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public class MUWSADVImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "muws_adv_impl";
+
+ private static final String[] capabilityURI = {
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement",
+ "http://docs.oasis-open.org/wsdm/muws/capabilities/Advertisement"
+ };
+
+ private static final String[] capabilityImplementation = {
+ "org.apache.muse.ws.dm.muws.adv.impl.SimpleAdvertisement",
+ "org.apache.muse.ws.dm.muws.adv.impl.ServiceGroupEntryAdvertisement",
+ "org.apache.muse.ws.dm.muws.adv.impl.BroadcastAdvertisement"
+ };
+
+ private static CapabilityPair[] capabilityCollection = {
+ new CapabilityPair(capabilityURI[0],capabilityImplementation[0]),
+ new CapabilityPair(capabilityURI[1],capabilityImplementation[1]),
+ new CapabilityPair(capabilityURI[2],capabilityImplementation[2])
+ };
+
+ public MUWSADVImplementationService(Bundle bundle){
+ super(bundle);
+ this.implementationName = IMPLEMENTATION_NAME;
+ this.capabilityMappings = capabilityCollection;
+ }
+
+ public Object getService(Bundle bundle, ServiceRegistration registration) {
+ return this;
+ }
+
+ public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
+ }
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/Activator.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/Activator.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/Activator.java Sat Mar 24 06:24:32 2007
@@ -1,54 +1,58 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.wsdm.muws;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import java.util.Hashtable;
-import org.apache.muse.util.osgi.ResourceManagementImplementation;
-
-/**
- *
- * Activator is ...
- *
- * @author Joel Hawkins (joelh)
- *
- */
-
-public class Activator implements BundleActivator {
-
- private MUWSImplementationService muwsService;
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- muwsService = new MUWSImplementationService(context.getBundle());
- Hashtable props = new Hashtable();
- props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, muwsService.getImplementationName());
- context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, muwsService, props);
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- }
-
-}
+/*
+ * 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.muse.osgi.wsdm.muws;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import java.util.Hashtable;
+import org.apache.muse.util.osgi.ResourceManagementImplementation;
+
+/**
+ *
+ * Activator is ...
+ *
+ * @author Joel Hawkins (joelh)
+ *
+ */
+
+public class Activator implements BundleActivator {
+
+ private MUWSImplementationService muwsService;
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ muwsService = new MUWSImplementationService(context.getBundle());
+ Hashtable props = new Hashtable();
+ props.put(ResourceManagementImplementation.IMPLEMENTATION_NAME, muwsService.getImplementationName());
+ context.registerService(new String[] {"org.apache.muse.util.osgi.ResourceManagementImplementation"}, muwsService, props);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ }
+
+}
Modified: webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/MUWSImplementationService.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/MUWSImplementationService.java?view=diff&rev=522026&r1=522025&r2=522026
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/MUWSImplementationService.java (original)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsdm-muws-api/src/org/apache/muse/osgi/wsdm/muws/MUWSImplementationService.java Sat Mar 24 06:24:32 2007
@@ -1,54 +1,59 @@
-/*=============================================================================*
- * Copyright 2006 The Apache Software Foundation
- *
- * Licensed 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.muse.osgi.wsdm.muws;
-
-import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.ServiceFactory;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * MUWSImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
- * service interface for the MUWS API bundle.
- *
- * @see ResourceManagementImplementation
- * @author Joel Hawkins (joelh)
- *
- */
-public class MUWSImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
- private static final String IMPLEMENTATION_NAME = "muws";
-
- private static final String[] RESOURCE_SPECS = {
- "WSDM-MUWS-Part2-1_1.wsdl",
- "WSDM-MUWS-TopicSpace.xml",
- "WSDM-MUWS-Part1-1_1.xsd",
- "WSDM-MUWS-Part2-1_1.xsd",
- "WSDM-MUWS-PBM.xsd"
- };
-
- public MUWSImplementationService(Bundle bundle){
- super(bundle);
- this.implementationName = IMPLEMENTATION_NAME;
- this.resourceSpecNames = RESOURCE_SPECS;
- }
-
- public Object getService(Bundle bundle, ServiceRegistration registration) {
- return this;
- }
-
- public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
- }
-}
+/*
+ * 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.muse.osgi.wsdm.muws;
+
+import org.apache.muse.util.osgi.AbstractResourceManagementImplementation;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * MUWSImplementationService is an implementation of the <code>ResourceManagementImplementation</code>
+ * service interface for the MUWS API bundle.
+ *
+ * @see ResourceManagementImplementation
+ * @author Joel Hawkins (joelh)
+ *
+ */
+public class MUWSImplementationService extends AbstractResourceManagementImplementation implements ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "muws";
+
+ private static final String[] RESOURCE_SPECS = {
+ "WSDM-MUWS-Part2-1_1.wsdl",
+ "WSDM-MUWS-TopicSpace.xml",
+ "WSDM-MUWS-Part1-1_1.xsd",
+ "WSDM-MUWS-Part2-1_1.xsd",
+ "WSDM-MUWS-PBM.xsd"
+ };
+
+ public MUWSImplementationService(Bundle bundle){
+ super(bundle);
+ this.implementationName = IMPLEMENTATION_NAME;
+ this.resourceSpecNames = RESOURCE_SPECS;
+ }
+
+ public Object getService(Bundle bundle, ServiceRegistration registration) {
+ return this;
+ }
+
+ public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) {
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org