I apologize for the empty commit message on the last addition (which was very large). I was having trouble with the Tigris SVN plugin, and by the time I finally got it resolved, I was so distracted that I forgot to re-type my message (again). Here is the explanation for this code:
---------------------------------------------------------- This update includes the OSGi bundle-ization of the modules under /trunk/modules. The modules will be compiled and installed in the local repository under /muse-osgi. OSGi users should only have to use these JARs (bundles) for their applications. This update was contributed by Joel H., and modified by me in the following ways: 1. Moved the bundle modules down one level to /trunk/modules/osgi-bundles so as not to crowd the already crowded /trunk/modules. 2. Updated POMs to reflect directory change (updated relative paths, etc) 3. Updated wsn-impl and wsrf-impl POMs because they did not include the dependency on muse-osgi-core. ---------------------------------------------------------- ----- Forwarded by Daniel Jemiolo/Durham/IBM on 08/02/2006 06:40 PM ----- [EMAIL PROTECTED] wrote on 08/02/2006 06:39:05 PM: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
