package org.fakereplace.integration.metawidget;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import org.fakereplace.api.ClassTransformer;
import org.fakereplace.api.IntegrationInfo;

public class MetawidgetIntegrationInfo implements IntegrationInfo
{
   
   public final static String BASE_PROPERTY_STYLE = "org.metawidget.inspector.impl.propertystyle.BasePropertyStyle";
   public final static String BASE_ACTION_STYLE = "org.metawidget.inspector.impl.actionstyle.BaseActionStyle";
   

   public String getClassChangeAwareName()
   {
      return "org.fakereplace.integration.metawidget.ClassRedefinitionPlugin";
   }

   public Set<String> getIntegrationTriggerClassNames()
   {
      return Collections.singleton(BASE_ACTION_STYLE);
   }

   public Set<String> getTrackedInstanceClassNames()
   {
      Set<String> ret = new HashSet<String>();
      ret.add(BASE_ACTION_STYLE);
      ret.add(BASE_PROPERTY_STYLE);
      return ret;
   }

   public ClassTransformer getTransformer()
   {
      return null;
   }

   public byte[] loadClass(String className)
   {
      return null;
   }

}

@@ -516,16 +516,262 @@
 %22;%0A   %0A%0A
+   private static final Set%3CString%3E classNames;%0A   %0A   static%0A   %7B%0A      Set%3CString%3E ret = new HashSet%3CString%3E();%0A      ret.add(BASE_ACTION_STYLE);%0A      ret.add(BASE_PROPERTY_STYLE);%0A      classNames = Collections.unmodifiableSet(ret);%0A   %7D%0A   %0A
    publi
@@ -805,16 +805,16 @@
 eName()%0A
-
    %7B%0A   
@@ -973,48 +973,18 @@
 urn 
-Collections.singleton(BASE_ACTION_STYLE)
+classNames
 ;%0A  
@@ -1055,135 +1055,25 @@
     
-Set%3CString%3E ret = new HashSet%3CString%3E();%0A      ret.add(BASE_ACTION_STYLE);%0A      ret.add(BASE_PROPERTY_STYLE);%0A      return ret
+return classNames
 ;%0A  

change metawidget integration triggers