Version 2

    AbstractController
    -
    org.jboss.dependency.plugins.controller.AbstractController

     

    This is the base implementation of the Controller contract. It provides a an extensible implementation and two locking methods to handle the state machine robustly.

     

    Locking methods

     

    Note: Neither of these locks should be held during callouts to context lifecycle methods install/uninstall to avoid deadlocks.

     

    • Read -

      lockRead

      and

      unlockRead

      provide a lock where no internal state is modified but you want a consistent view of the data.

    • Write -

      lockWrite

      and

      unlockWrite

      provide a lock internal state is modified.

     

    Referenced by: