[jboss-cvs] JBossAS SVN: r75495 - projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 8 08:54:30 EDT 2008


Author: alesj
Date: 2008-07-08 08:54:30 -0400 (Tue, 08 Jul 2008)
New Revision: 75495

Modified:
   projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/SearchValueMetaData.java
Log:
Use INSTALLED by default.

Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/SearchValueMetaData.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/SearchValueMetaData.java	2008-07-08 12:48:14 UTC (rev 75494)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/SearchValueMetaData.java	2008-07-08 12:54:30 UTC (rev 75495)
@@ -60,11 +60,15 @@
 
    public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable
    {
+      // we're here, so it must be GraphController instance
       Controller controller = context.getController();
-      // we're here, so it must be GraphController instance
       GraphController gc = (GraphController)controller;
-      ControllerContext context = gc.getContext(getUnderlyingValue(), state, search);
 
+      ControllerState dependentState = state;
+      if (dependentState == null)
+         dependentState = ControllerState.INSTALLED;
+      ControllerContext context = gc.getContext(getUnderlyingValue(), dependentState, search);
+
       Object result;
       if (property != null && property.length() > 0)
       {




More information about the jboss-cvs-commits mailing list