Package org.jboss.util.state

Examples of org.jboss.util.state.StateMachine


/*    */     throws PolicyContextException
/*    */   {
/* 80 */     JBossPolicyConfiguration pc = (JBossPolicyConfiguration)this.policyConfigMap.get(contextID);
/* 81 */     if (pc == null)
/*    */     {
/* 83 */       StateMachine sm = (StateMachine)this.configStateMachine.clone();
/* 84 */       pc = new JBossPolicyConfiguration(contextID, this.policy, sm);
/* 85 */       this.policyConfigMap.put(contextID, pc);
/*    */     }
/* 87 */     pc.initPolicyConfiguration(remove);
/* 88 */     return pc;
View Full Code Here


/*     */     }
/*     */
/* 151 */     if (resolveFailed.length() > 0) {
/* 152 */       throw new Exception("Failed to resolve transition targets: " + resolveFailed);
/*     */     }
/* 154 */     StateMachine sm = new StateMachine(states, startState, description);
/* 155 */     return sm;
/*     */   }
View Full Code Here

/*     */
/*  65 */   public static final Set STATES = new HashSet(Arrays.asList(new State[] { STATE_UNREGISTERED, STATE_REGISTERED, STATE_CREATED, STATE_STARTING, STATE_STARTED, STATE_STOPPING, STATE_STOPPED, STATE_DESTROYED, STATE_FAILED }));
/*     */
/*     */   public static StateMachine createStateMachine(String description)
/*     */   {
/* 130 */     return new StateMachine(STATES, STATE_UNREGISTERED, description);
/*     */   }
View Full Code Here

      throws PolicyContextException
   {
      JBossPolicyConfiguration pc = (JBossPolicyConfiguration) policyConfigMap.get(contextID);
      if( pc == null )
      {
         StateMachine sm = (StateMachine) configStateMachine.clone();
         pc = new JBossPolicyConfiguration(contextID, policy, sm);
         policyConfigMap.put(contextID, pc);
      }
      pc.initPolicyConfiguration(remove);
      return pc;
View Full Code Here

      throws PolicyContextException
   {
      JBossPolicyConfiguration pc = (JBossPolicyConfiguration) policyConfigMap.get(contextID);
      if( pc == null )
      {
         StateMachine sm = (StateMachine) configStateMachine.clone();
         pc = new JBossPolicyConfiguration(contextID, policy, sm);
         policyConfigMap.put(contextID, pc);
      }
      pc.initPolicyConfiguration(remove);
      return pc;
View Full Code Here

      }

      if( resolveFailed.length() > 0 )
         throw new DocumentException("Failed to resolve transition targets: "+resolveFailed);

      StateMachine sm = new StateMachine(states, startState, description);
      return sm;
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.state.StateMachine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.