[jbossws-commits] JBossWS SVN: r9734 - common/trunk/src/main/java/org/jboss/wsf/common/javax.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Apr 3 16:50:46 EDT 2009


Author: richard.opalka at jboss.com
Date: 2009-04-03 16:50:46 -0400 (Fri, 03 Apr 2009)
New Revision: 9734

Modified:
   common/trunk/src/main/java/org/jboss/wsf/common/javax/JavaxAnnotationHelper.java
Log:
[JBWS-2074] rollback TODO

Modified: common/trunk/src/main/java/org/jboss/wsf/common/javax/JavaxAnnotationHelper.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/javax/JavaxAnnotationHelper.java	2009-04-03 20:41:38 UTC (rev 9733)
+++ common/trunk/src/main/java/org/jboss/wsf/common/javax/JavaxAnnotationHelper.java	2009-04-03 20:50:46 UTC (rev 9734)
@@ -83,18 +83,6 @@
 
       Class<?> instanceClass = instance.getClass();
 
-      // TODO: remove this check once AS 42x support is removed
-      try
-      {
-         instanceClass.getClassLoader().loadClass("javax.annotation.Resource");
-      }
-      catch (Throwable th)
-      {
-         LOG.warn("Cannot inject resources: ", th);
-         return;
-      }
-      // TODO: end
-
       InitialContext ctx = new InitialContext();
 
       // inject descriptor driven annotations
@@ -212,18 +200,6 @@
       if (instance == null)
          throw new IllegalArgumentException("Object instance cannot be null");
 
-      // TODO: remove this check once AS 42x support is removed
-      try
-      {
-         instance.getClass().getClassLoader().loadClass("javax.annotation.PostConstruct");
-      }
-      catch (Throwable th)
-      {
-         LOG.warn("Cannot call post construct: ", th);
-         return;
-      }
-      // TODO: end
-
       Collection<Method> methods = POST_CONSTRUCT_METHOD_FINDER.process(instance.getClass());
 
       if (methods.size() > 0)
@@ -254,18 +230,6 @@
       if (instance == null)
          throw new IllegalArgumentException("Object instance cannot be null");
 
-      // TODO: remove this check once AS 42x support is removed
-      try
-      {
-         instance.getClass().getClassLoader().loadClass("javax.annotation.PreDestroy");
-      }
-      catch (Throwable th)
-      {
-         LOG.warn("Cannot call pre destroy: ", th);
-         return;
-      }
-      // TODO: end
-
       Collection<Method> methods = PRE_DESTROY_METHOD_FINDER.process(instance.getClass());
 
       if (methods.size() > 0)




More information about the jbossws-commits mailing list