myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r815797 - in /myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting: api/BaseWeaver.java api/ScriptingWeaver.java core/CoreWeaver.java
Date Wed, 16 Sep 2009 14:21:54 GMT
Author: werpu
Date: Wed Sep 16 14:21:54 2009
New Revision: 815797

URL: http://svn.apache.org/viewvc?rev=815797&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-1
opened a path to the scripting weavers so that we can access their internal search paths

Modified:
    myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/BaseWeaver.java
    myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/ScriptingWeaver.java
    myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/core/CoreWeaver.java

Modified: myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/BaseWeaver.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/BaseWeaver.java?rev=815797&r1=815796&r2=815797&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/BaseWeaver.java
(original)
+++ myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/BaseWeaver.java
Wed Sep 16 14:21:54 2009
@@ -233,4 +233,10 @@
         return scriptPaths;
     }
 
+    public ScriptingWeaver getWeaverInstance(Class weaverClass) {
+        if(getClass().equals(weaverClass)) return this;
+
+        return null;
+    }
+
 }

Modified: myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/ScriptingWeaver.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/ScriptingWeaver.java?rev=815797&r1=815796&r2=815797&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/ScriptingWeaver.java
(original)
+++ myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/api/ScriptingWeaver.java
Wed Sep 16 14:21:54 2009
@@ -85,4 +85,7 @@
      */
     public boolean isDynamic(Class clazz);
 
+
+    public ScriptingWeaver getWeaverInstance(Class weaverClass);
+
 }

Modified: myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/core/CoreWeaver.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/core/CoreWeaver.java?rev=815797&r1=815796&r2=815797&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/core/CoreWeaver.java
(original)
+++ myfaces/extensions/scripting/trunk/core/core/src/main/java/org/apache/myfaces/scripting/core/CoreWeaver.java
Wed Sep 16 14:21:54 2009
@@ -98,5 +98,14 @@
         return false;
     }
 
+    public ScriptingWeaver getWeaverInstance(Class weaverClass) {
+         for (ScriptingWeaver weaver : _weavers) {
+            ScriptingWeaver retVal = weaver.getWeaverInstance(weaverClass);
+            if(retVal != null) {
+                return retVal;
+            }
+         }
+         return null;   
+    }
 }
 



Mime
View raw message