[Jboss-cvs] JBossAS SVN: r55838 - projects/microcontainer/trunk/dependency/src/main/org/jboss/dependency/plugins

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Aug 12 02:26:49 EDT 2006


Author: alesj
Date: 2006-08-12 02:26:47 -0400 (Sat, 12 Aug 2006)
New Revision: 55838

Modified:
   projects/microcontainer/trunk/dependency/src/main/org/jboss/dependency/plugins/AbstractController.java
Log:
Tmp commit - see todo at the end.

Modified: projects/microcontainer/trunk/dependency/src/main/org/jboss/dependency/plugins/AbstractController.java
===================================================================
--- projects/microcontainer/trunk/dependency/src/main/org/jboss/dependency/plugins/AbstractController.java	2006-08-11 20:26:36 UTC (rev 55837)
+++ projects/microcontainer/trunk/dependency/src/main/org/jboss/dependency/plugins/AbstractController.java	2006-08-12 06:26:47 UTC (rev 55838)
@@ -39,7 +39,7 @@
 
 /**
  * Abstract controller.
- * 
+ *
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision$
  */
@@ -47,7 +47,7 @@
 {
    /** The lock */
    private ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
-   
+
    /** The states in order List<ControllerState> */
    protected List<ControllerState> states = CollectionsFactory.createCopyOnWriteList();
 
@@ -65,10 +65,10 @@
 
    /** Whether an on demand context has been enabled */
    protected boolean onDemandEnabled = true;
-   
+
    /**
     * Create an abstract controller
-    * 
+    *
     * @throws Exception for any error
     */
    public AbstractController() throws Exception
@@ -112,7 +112,7 @@
    {
       if (name == null)
          throw new IllegalArgumentException("Null name");
-      
+
       lockRead();
       try
       {
@@ -234,7 +234,7 @@
 
    /**
     * Install a context
-    * 
+    *
     * @param context the context
     * @param trace whether trace is enabled
     * @throws Throwable for any error
@@ -288,7 +288,7 @@
 
    /**
     * Change a context's state
-    * 
+    *
     * @param context the context
     * @param state the required state
     * @param trace whether trace is enabled
@@ -336,7 +336,7 @@
 
    /**
     * Enable an on demand context
-    * 
+    *
     * @param context the context
     * @param trace whether trace is enabled
     * @throws Throwable for any error
@@ -370,9 +370,9 @@
 
    /**
     * Increment state<p>
-    * 
+    *
     * This method must be invoked with the write lock taken.
-    * 
+    *
     * @param context the context
     * @param trace whether trace is enabled
     * @return whether the suceeded
@@ -454,9 +454,9 @@
 
    /**
     * Resolve unresolved contexts<p>
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param trace whether trace is enabled
     */
    protected void resolveContexts(boolean trace)
@@ -500,9 +500,9 @@
 
    /**
     * Resolve contexts<p>
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param fromState the from state
     * @param toState the to state
     * @param trace whether trace is enabled
@@ -551,9 +551,9 @@
 
    /**
     * Resolve contexts<p>
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param contexts the contexts
     * @param state the state
     * @param trace whether trace is enabled
@@ -582,9 +582,9 @@
 
    /**
     * Uninstall a context
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param context the context to uninstall
     * @param toState the target state
     * @param trace whether trace is enabled
@@ -612,9 +612,9 @@
 
    /**
     * Uninstall a context<p>
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param context the context to uninstall
     * @param trace whether trace is enabled
     */
@@ -692,9 +692,9 @@
 
    /**
     * Install a context<p>
-    * 
+    *
     * This method must be invoked with NO locks taken
-    * 
+    *
     * @param context the context
     * @param fromState the from state
     * @param toState the toState
@@ -707,9 +707,9 @@
 
    /**
     * Uninstall a context<p>
-    * 
+    *
     * This method must be invoked with NO locks taken
-    * 
+    *
     * @param context the context
     * @param fromState the from state
     * @param toState the to state
@@ -721,9 +721,9 @@
 
    /**
     * Whether we should advance the context<p>
-    * 
+    *
     * This method must be invoked with the write lock taken
-    * 
+    *
     * @param context the context
     * @return true when we should advance the context
     */
@@ -774,4 +774,20 @@
    {
       lock.writeLock().unlock();
    }
+
+   // todo - already implemented - on another location - forgot to commit ;-(
+
+   public Set getInstantiatedBeans(Class clazz)
+   {
+      return null;
+   }
+
+   public void addInstantiatedBean(Object bean)
+   {
+   }
+
+   public void removeInstantiatedBean(Object bean)
+   {
+   }
+
 }




More information about the jboss-cvs-commits mailing list