incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jnee...@apache.org
Subject svn commit: r627871 - /incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
Date Thu, 14 Feb 2008 21:06:43 GMT
Author: jneeraj
Date: Thu Feb 14 13:06:41 2008
New Revision: 627871

URL: http://svn.apache.org/viewvc?rev=627871&view=rev
Log:
implemented the new datacollector method

Modified:
    incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java

Modified: incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java?rev=627871&r1=627870&r2=627871&view=diff
==============================================================================
--- incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
(original)
+++ incubator/imperius/trunk/imperius-javaspl/src/main/java/org/apache/imperius/javaspl/JavaDataCollectorImpl.java
Thu Feb 14 13:06:41 2008
@@ -289,4 +289,20 @@
 		return refTypeNm;
 	}
 
+    public boolean isInstance(String anchorClassName, Object instance)
+            throws SPLException
+    {
+        boolean isInst = false;
+        try
+        {
+            Class anchorClass = Class.forName(anchorClassName);
+            isInst = anchorClass.isInstance(instance);
+        }
+        catch (ClassNotFoundException e)
+        {
+            throw new SPLException(e.getMessage());
+        }
+        return isInst;
+    }
+
 }



Mime
View raw message