Examples of state()


Examples of org.gradle.model.internal.registry.ModelRegistry.state()

        taskContainer.all(new Action<Task>() {
            public void execute(final Task task) {
                final String name = task.getName();
                final ModelPath modelPath = TaskContainerInternal.MODEL_PATH.child(name);

                ModelState state = modelRegistry.state(modelPath);
                if (state == null || state.getStatus() != ModelState.Status.IN_CREATION) {
                    modelRegistry.create(
                            ModelCreators.of(ModelReference.of(modelPath, ModelType.typeOf(task)), task)
                                    .simpleDescriptor("Project.<init>.tasks." + name + "()")
                                    .build()
View Full Code Here

Examples of org.jboss.aophelper.annotation.AopHelperAction.state()

   }

   public Object invoke(Invocation invocation) throws Throwable
   {
      AopHelperAction helperAction = (AopHelperAction) invocation.resolveAnnotation(org.jboss.aophelper.annotation.AopHelperAction.class);
      System.out.println("state: "+helperAction.state().name());
     
      System.out.println("option: "+helperAction.option().name());
      System.out.println("action: "+helperAction.action().name());
     
      if(helperAction.state().equals(AopState.COMPILE))
View Full Code Here

Examples of org.jboss.aophelper.annotation.AopHelperAction.state()

      System.out.println("state: "+helperAction.state().name());
     
      System.out.println("option: "+helperAction.option().name());
      System.out.println("action: "+helperAction.action().name());
     
      if(helperAction.state().equals(AopState.COMPILE))
      {
         new CompileManager().performAction(helperAction.action(), helperAction.option());
      }
      if(helperAction.state().equals(AopState.RUN))
      {
View Full Code Here

Examples of org.jboss.aophelper.annotation.AopHelperAction.state()

     
      if(helperAction.state().equals(AopState.COMPILE))
      {
         new CompileManager().performAction(helperAction.action(), helperAction.option());
      }
      if(helperAction.state().equals(AopState.RUN))
      {
         new RunManager().performAction(helperAction.action(), helperAction.option());
      }
     
      return invocation.invokeNext();
View Full Code Here

Examples of org.jclouds.compute.domain.NodeMetadataBuilder.state()

         builder.group(parseGroupFromName(from.getName()));

         builder.operatingSystem(new OperatingSystemBuilder().description(from.getOSType()).build());
         builder.hardware(findHardwareForDomain.apply(from));

         builder.state(domainStateToNodeState.get(from.getInfo().state));
         // builder.publicAddresses(ImmutableSet.<String> of(from.publicAddress));
         // builder.privateAddresses(ImmutableSet.<String> of(from.privateAddress));
         builder.credentials(credentialStore.get("node#" + from.getUUIDString()));

      } catch (LibvirtException e) {
View Full Code Here

Examples of org.jkff.ire.DFABuilder.state()

*/
public class RopeBasedISTest {
    @Test
    public void testABConDFA() {
        DFABuilder forward = new DFABuilder(4, 0, 1);
        forward.state(0).transitions('a', 1, null, 0);
        forward.state(1).transitions('b', 2, null, 0);
        forward.state(2).transitions('c', 3, null, 0);
        forward.state(3, 0).transitions(null, 3);

        DFABuilder backward = new DFABuilder(4, 0, 1);
View Full Code Here

Examples of org.jkff.ire.NFABuilder.state()

    }

    @Test
    public void testABConNFA() {
        NFABuilder forward = new NFABuilder(4, 0, 1);
        forward.state(0).transitions('a', 1, null, 0);
        forward.state(1).transitions('b', 2, null, 0);
        forward.state(2).transitions('c', 3, null, 0);
        forward.state(3, 0).transitions(null, 3);

        NFABuilder backward = new NFABuilder(4, 0, 1);
View Full Code Here

Examples of org.keycloak.testsuite.OAuthClient.state()

        // Create second session
        WebDriver driver2 = WebRule.createWebDriver();
        try {
            OAuthClient oauth2 = new OAuthClient(driver2);
            oauth2.state("mystate");
            oauth2.doLogin("view-sessions", "password");

            Event login2Event = events.expectLogin().user(userId).detail(Details.USERNAME, "view-sessions").assertEvent();

            sessionsPage.open();
View Full Code Here

Examples of org.ofbiz.workflow.WfActivity.state()

    public WfAssignment delegate(String workEffortId, String fromPartyId, String fromRoleTypeId, Timestamp fromFromDate, String toPartyId, String toRoleTypeId, Timestamp toFromDate) throws WfException {
        WfActivity activity = WfFactory.getWfActivity(delegator, workEffortId);
        WfAssignment fromAssign = null;

        // check status and delegateAfterStart attribute
        if (activity.state().equals("open.running") && !activity.getDefinitionObject().getBoolean("delegateAfterStart").booleanValue())
            throw new WfException("This activity cannot be delegated once it has been started");

        if (fromPartyId == null && fromRoleTypeId == null && fromFromDate == null) {
            Iterator<WfAssignment> i = activity.getIteratorAssignment();
            fromAssign = i.next();
View Full Code Here

Examples of org.ofbiz.workflow.WfActivity.state()

    public WfAssignment delegate(String workEffortId, String fromPartyId, String fromRoleTypeId, Timestamp fromFromDate, String toPartyId, String toRoleTypeId, Timestamp toFromDate) throws WfException {
        WfActivity activity = WfFactory.getWfActivity(delegator, workEffortId);
        WfAssignment fromAssign = null;

        // check status and delegateAfterStart attribute
        if (activity.state().equals("open.running") && !activity.getDefinitionObject().getBoolean("delegateAfterStart").booleanValue())
            throw new WfException("This activity cannot be delegated once it has been started");

        if (fromPartyId == null && fromRoleTypeId == null && fromFromDate == null) {
            Iterator i = activity.getIteratorAssignment();
            fromAssign = (WfAssignment) i.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.