1 22 package org.jboss.dependency.spi; 23 24 import org.jboss.util.JBossInterface; 25 26 32 public interface ControllerContext extends JBossInterface 33 { 34 39 Object getName(); 40 41 46 DependencyInfo getDependencyInfo(); 47 48 53 Object getTarget(); 54 55 60 Controller getController(); 61 62 67 void setController(Controller controller); 68 69 76 void install(ControllerState fromState, ControllerState toState) throws Throwable ; 77 78 84 void uninstall(ControllerState fromState, ControllerState toState); 85 86 91 ControllerState getState(); 92 93 98 ControllerState getRequiredState(); 99 100 105 void setRequiredState(ControllerState state); 106 107 112 ControllerMode getMode(); 113 114 119 void setMode(ControllerMode mode); 120 121 126 Throwable getError(); 127 128 133 void setError(Throwable error); 134 } 135 | Popular Tags |