incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1042654 - in /incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly: ./ api/
Date Mon, 06 Dec 2010 14:18:50 GMT
Author: davidb
Date: Mon Dec  6 14:18:49 2010
New Revision: 1042654

URL: http://svn.apache.org/viewvc?rev=1042654&view=rev
Log:
Renamed some classes.

Added:
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ClientWeavingHook.java
      - copied, changed from r1042653, incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/MyWeavingHook.java
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
      - copied, changed from r1042653, incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/SPIBundleTrackerCustomizer.java
Removed:
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/MyWeavingHook.java
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/SPIBundleTrackerCustomizer.java
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/api/SPIClassloaderAdviceService.java
Modified:
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/Activator.java
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/TCCLSetterVisitor.java

Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/Activator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/Activator.java?rev=1042654&r1=1042653&r2=1042654&view=diff
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/Activator.java
(original)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/Activator.java
Mon Dec  6 14:18:49 2010
@@ -50,12 +50,12 @@ public class Activator implements Bundle
         lst = new LogServiceTracker(context);
         lst.open();
 
-        WeavingHook wh = new MyWeavingHook(context);
+        WeavingHook wh = new ClientWeavingHook(context);
         weavingHookService = context.registerService(WeavingHook.class, wh,
                 null);
 
         bt = new BundleTracker<List<ServiceRegistration<?>>>(context,
-                Bundle.ACTIVE, new SPIBundleTrackerCustomizer(this, context.getBundle()));
+                Bundle.ACTIVE, new ProviderBundleTrackerCustomizer(this, context.getBundle()));
         bt.open();
         
         activator = this;

Copied: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ClientWeavingHook.java
(from r1042653, incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/MyWeavingHook.java)
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ClientWeavingHook.java?p2=incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ClientWeavingHook.java&p1=incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/MyWeavingHook.java&r1=1042653&r2=1042654&rev=1042654&view=diff
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/MyWeavingHook.java
(original)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ClientWeavingHook.java
Mon Dec  6 14:18:49 2010
@@ -27,10 +27,10 @@ import org.osgi.framework.hooks.weaving.
 import org.osgi.framework.hooks.weaving.WovenClass;
 import org.osgi.service.log.LogService;
 
-public class MyWeavingHook implements WeavingHook {
+public class ClientWeavingHook implements WeavingHook {
     private final String addedImport;
     
-    MyWeavingHook(BundleContext context) {
+    ClientWeavingHook(BundleContext context) {
         Bundle b = context.getBundle();
         String bver = b.getVersion().toString();
         String bsn = b.getSymbolicName();

Copied: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
(from r1042653, incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/SPIBundleTrackerCustomizer.java)
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java?p2=incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java&p1=incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/SPIBundleTrackerCustomizer.java&r1=1042653&r2=1042654&rev=1042654&view=diff
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/SPIBundleTrackerCustomizer.java
(original)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
Mon Dec  6 14:18:49 2010
@@ -33,11 +33,11 @@ import org.osgi.framework.ServiceRegistr
 import org.osgi.service.log.LogService;
 import org.osgi.util.tracker.BundleTrackerCustomizer;
 
-public class SPIBundleTrackerCustomizer implements BundleTrackerCustomizer<List<ServiceRegistration<?>>>
{
+public class ProviderBundleTrackerCustomizer implements BundleTrackerCustomizer<List<ServiceRegistration<?>>>
{
     final Activator activator;
     final Bundle spiBundle;
 
-    public SPIBundleTrackerCustomizer(Activator a, Bundle b) {
+    public ProviderBundleTrackerCustomizer(Activator a, Bundle b) {
         activator = a;
         spiBundle = b;
         

Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/TCCLSetterVisitor.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/TCCLSetterVisitor.java?rev=1042654&r1=1042653&r2=1042654&view=diff
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/TCCLSetterVisitor.java
(original)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFly/src/org/apache/aries/spifly/TCCLSetterVisitor.java
Mon Dec  6 14:18:49 2010
@@ -27,6 +27,10 @@ import org.objectweb.asm.MethodVisitor;
 import org.objectweb.asm.Opcodes;
 import org.objectweb.asm.Type;
 
+/**
+ * This class implements an ASM ClassVisitor which puts the appropriate ThreadContextClassloader
+ * calls around applicable method invocations. 
+ */
 public class TCCLSetterVisitor extends ClassAdapter implements ClassVisitor, Opcodes {
     private static final String GENERATED_METHOD_NAME = "$$FCCL$$";
 



Mime
View raw message