Examples of change()


Examples of org.jboss.kernel.spi.dependency.KernelController.change()

         contexts.add(install("parent", "main", null, -1));
         contexts.add(install("local", "main", "core", -1));
         contexts.add(install("top", null, null, -1));

         // here we need a little push - since by default we only do parent hierarchy resolution
         controller.change(context, ControllerState.INSTALLED);

         assertEquals(ControllerState.INSTALLED, context.getState());
         doTestAfterInstall(context.getTarget());
      }
      finally
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

    */
   public <T> T lookup(String name, Class<T> expectedType) throws Throwable
   {
      KernelController controller = getKernel().getController();
      ControllerContext context = controller.getContext(name, null);
      controller.change(context, ControllerState.INSTALLED);
      if (context.getError() != null)
         throw context.getError();

      if (context.getState() != ControllerState.INSTALLED)
      {
View Full Code Here

Examples of org.jboss.kernel.spi.dependency.KernelController.change()

                  String beanClassName = target.getClass().getName();
                  AbstractBeanMetaData beanMetaData = new AbstractBeanMetaData(name, beanClassName);
                  KernelControllerContext context = controller.install(beanMetaData, target);
                  objects.add(name);
                  controller.change(context, ControllerState.INSTALLED);
               }
               catch (Throwable t)
               {
                  if (errors == null)
                     errors = new ArrayList<Throwable>();
View Full Code Here

Examples of org.picocontainer.classname.DefaultClassLoadingPicoContainer.change()

        final Storing store = (Storing) new Storing().wrap(new CompositeInjection(new ConstructorInjection(),
                new SetterInjection("set", "setMetaClass")));
        ClassLoader currentClassLoader = this.getClass().getClassLoader();
        final DefaultClassLoadingPicoContainer pageObjects = new DefaultClassLoadingPicoContainer(currentClassLoader,
                store, primordial);
        pageObjects.change(Characteristics.USE_NAMES);
        // This loads all the Groovy page objects - can be stateful
        pageObjects.visit(new ClassName("pages.Home"), ".*\\.class", true,
                new DefaultClassLoadingPicoContainer.ClassVisitor() {
                    public void classFound(@SuppressWarnings("rawtypes") Class clazz) {
                        pageObjects.addComponent(clazz);
View Full Code Here

Examples of org.tmatesoft.hg.core.HgStatusCommand.change()

    };

    StatusHandler statusHandler = new StatusHandler();
    int changeRev = cmdLineOpts.getSingleInt(BAD_REVISION, "--change");
    if (changeRev != BAD_REVISION) {
      cmd.change(changeRev);
    } else {
      List<String> revisions = cmdLineOpts.getList("--rev");
      int size = revisions.size();
      if (size > 1) {
        cmd.base(Integer.parseInt(revisions.get(size - 2))).revision(Integer.parseInt(revisions.get(size - 1)));
View Full Code Here

Examples of org.tmatesoft.hg.core.HgStatusCommand.change()

    final HgStatusCommand cmd = new HgStatusCommand(repo).defaults();
    StatusCollector sc;
    for (int r : new int[] {2,3,4}) {
      statusParser.reset();
      eh.run("hg", "status", "-C", "--change", String.valueOf(r));
      cmd.change(r).execute(sc = new StatusCollector());
      sr.report("hg status -C --change " + r, sc);
    }
    // a and d from r5 are missing in r3
    statusParser.reset();
    eh.run("hg", "status", "-C", "--rev", "3", "--rev", "5");
View Full Code Here

Examples of org.tmatesoft.hg.internal.ConfigFileParser.change()

        switch (op.kind) {
        case AddValue: {
          String separator = ", "; // XXX shall parse and find out separator kind in use
          String newValue = oldValue + separator + op.value;
          if (sect.containsKey(op.key)) {
            cfgWrite.change(op.section, op.key, newValue);
          } else {
            cfgWrite.add(op.section, op.key, newValue);
          }
          break;
        }
View Full Code Here

Examples of org.tmatesoft.hg.internal.ConfigFileParser.change()

          } else {
            // found no separator, just remove the value
            // extra whitespaces (if space, not a comma is a separator) won't hurt
            newValue = oldValue.substring(0, start) + oldValue.substring(start + op.value.length());
          }
          cfgWrite.change(op.section, op.key, newValue);
          break;
        }
        case SetValue: {
          if (sect.containsKey(op.key)) {
            cfgWrite.change(op.section, op.key, op.value);
View Full Code Here

Examples of org.tmatesoft.hg.internal.ConfigFileParser.change()

          cfgWrite.change(op.section, op.key, newValue);
          break;
        }
        case SetValue: {
          if (sect.containsKey(op.key)) {
            cfgWrite.change(op.section, op.key, op.value);
          } else {
            cfgWrite.add(op.section, op.key, op.value);
          }
          break;
        }
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgStatusCollector.change()

    sortAndPrint('M', r.getModified(), null);
    sortAndPrint('A', r.getAdded(), null);
    sortAndPrint('R', r.getRemoved(), null);
    //
    System.out.println("\n\nTry hg status --change <rev>:");
    sc.change(0, dump);
    System.out.println("\nStatus against working dir:");
    HgWorkingCopyStatusCollector wcc = new HgWorkingCopyStatusCollector(hgRepo);
    wcc.walk(WORKING_COPY, dump);
    System.out.println();
    System.out.printf("Manifest of the revision %d:\n", r2);
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.