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 2006/08/03 00:39:05 UTC
svn commit: r428178 [2/2] - in /webservices/muse/trunk/modules/osgi-bundles:
./ muse-core/ muse-core/resources/ muse-core/resources/META-INF/
muse-util-all/ muse-util-all/resources/ muse-util-all/resources/META-INF/
muse-wsa-soap/ muse-wsa-soap/resourc...
Added: webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/WSXImplementationService.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/WSXImplementationService.java?rev=428178&view=auto
==============================================================================
--- webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/WSXImplementationService.java (added)
+++ webservices/muse/trunk/modules/osgi-bundles/muse-wsx-impl/src/org/apache/muse/osgi/wsx/WSXImplementationService.java Wed Aug 2 15:39:01 2006
@@ -0,0 +1,71 @@
+package org.apache.muse.osgi.wsx;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.muse.core.platform.osgi.ResourceManagementImplementation;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.ServiceFactory;
+import org.osgi.framework.ServiceRegistration;
+
+public class WSXImplementationService implements ResourceManagementImplementation, ServiceFactory {
+ private static final String IMPLEMENTATION_NAME = "wsx";
+ private static final String[] RESOURCE_IMPLEMENTATIONS =
+ {};
+
+ private static final String[] RESOURCE_SPECS = {
+ "WS-MetadataExchange-2004_09.xsd"
+ };
+
+ private static final String[] capabilityURI = {
+ "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata"
+ };
+
+ private static final String[] capabilityImplementation = {
+ "org.apache.muse.ws.metadata.impl.SimpleMetadataExchange"
+ };
+
+ private static HashMap capabilityMap;
+
+ private Bundle bundle;
+
+ static {
+ capabilityMap = new HashMap();
+ for(int i=0;i<capabilityURI.length;i++){
+ capabilityMap.put(capabilityURI[i], capabilityImplementation[i]);
+ }
+ }
+
+ public WSXImplementationService(Bundle bundle){
+ this.bundle = bundle;
+ }
+
+ public String getImplementationName() {
+ return IMPLEMENTATION_NAME;
+ }
+
+ public Map getResourceCapabilityMappings() {
+ return capabilityMap;
+ }
+
+ public String[] getResourceImplementationNames() {
+ return RESOURCE_IMPLEMENTATIONS;
+ }
+
+ public String[] getResourceSpecNames() {
+ return RESOURCE_SPECS;
+ }
+
+ public Bundle getBundle(){
+ return bundle;
+ }
+
+ 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