Examples of register()


Examples of org.wso2.carbon.utils.deployment.Axis2ModuleRegistry.register()

        Axis2DeployerRegistry deployerRegistry = new Axis2DeployerRegistry(axisConfig);
        deployerRegistry.register(configItemHolder.getDeployerBundles());

        //Deploying modules which come inside bundles.
        Axis2ModuleRegistry moduleRegistry = new Axis2ModuleRegistry(axisConfig);
        moduleRegistry.register(configItemHolder.getModuleBundles());

        globallyEngagedModules = axisConfig.getEngagedModules();
        if (repoLocation != null && repoLocation.trim().length() != 0) {
            try {
                if (isUrlRepo) {

Examples of org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register()

            clientConfigContext.setProperty(ServerConstants.FILE_RESOURCE_MAP, property);
            clientConfigContext.setContextRoot(carbonContextRoot);

            //Deploying Web service which resides in bundles
            Axis2ServiceRegistry serviceRegistry = new Axis2ServiceRegistry(serverConfigContext);
            serviceRegistry.register(bundleContext.getBundles());
            new OSGiAxis2ServiceDeployer(serverConfigContext, bundleContext).registerBundleListener(); // This will register the OSGi bundle listener

            HttpService httpService = dataHolder.getHttpService();
            HttpContext defaultHttpContext = httpService.createDefaultHttpContext();

Examples of org.zanata.page.account.RegisterPage.register()

        assertThat(registerPage.getErrors())
                .as("No errors are shown")
                .isEmpty();

        homePage = registerPage.register();

        assertThat(homePage.getNotificationMessage())
                .isEqualTo(HomePage.SIGNUP_SUCCESS_MESSAGE)
                .as("Sign up is successful");
    }

Examples of org.zeromq.ZMQ.Poller.register()

    public void testPollerUnregister() {
        Context context = ZMQ.context(1);
        Socket socketOne = context.socket(ZMQ.SUB);
        Socket socketTwo = context.socket(ZMQ.REP);
        Poller poller = new ZMQ.Poller(2);
        poller.register(socketOne, ZMQ.Poller.POLLIN);
        poller.register(socketTwo, ZMQ.Poller.POLLIN);

        socketOne.setLinger(0);
        socketOne.close();
        socketTwo.setLinger(0);

Examples of pt.ul.jarmus.JArmusController.register()

   * @param task
   */
  @Override
  public void beforeExec(ForkJoinTask<?> task) {
    JArmusController handler = getController();
    handler.register(task, 1);
  }

  /**
   * Deregisters the thread from the join
   * @param task

Examples of rinde.sim.core.Simulator.register()

    final String string = "AgentWise";
    final List<Point> points = measureString(string, 30, 30, 0);
    final RandomGenerator rng = new MersenneTwister(123);
    final Simulator sim = new Simulator(rng, Measure.valueOf(1000L,
        SI.MILLI(SI.SECOND)));
    sim.register(new PlaneRoadModel(new Point(0, 0), new Point(4500, 1200),
        SI.METER, Measure.valueOf(1000d, NonSI.KILOMETERS_PER_HOUR)));
    sim.configure();
    for (final Point p : points) {
      sim.register(new Vehicle(p, rng));
    }

Examples of rocket.beans.rebind.alias.GetAliasesToBeans.register()

    while (beansIterator.hasNext()) {
      final Alias alias = beansIterator.next();
      final String from = alias.getName();
      final String to = alias.getBean();
      body.register(from, to);

      context.debug(from + "=" + to);
      aliasCount++;
    }

Examples of rocket.logging.rebind.findlogger.FindLoggerTemplatedFile.register()

      context.debug(name + "=" + loggerTypeName + " (" + loggingLevel + ")");

      final Constructor loggingLevelLogger = this.getConstructorForLoggingLevel(loggingLevel);
      final Constructor logger = this.getTargetLoggerConstructor(loggerTypeName);

      template.register(name, loggingLevelLogger, logger);
    }

    // rename parameter to a known name which matches the variable named
    // used in templates.
    final NewMethodParameter parameter = (NewMethodParameter) newMethod.getParameters().get(0);

Examples of rocket.serialization.rebind.switchstatement.SwitchTemplatedFile.register()

      }

      final Type objectReader = entry.getValue();
      final Field objectReaderSingleton = objectReader.getField(SerializationConstants.SINGLETON);

      body.register(type, objectReaderSingleton);

      context.debug(type.getName() + " = " + objectReader.getName());
    }

    newMethod.setBody(body);

Examples of slash.navigation.gui.actions.ActionManager.register()

        JMenu mergeMenu = (JMenu) findMenuComponent(menu, "merge-positionlist");
        new MergePositionListMenu(mergeMenu, getPositionsView(), getFormatAndRoutesModel());

        ClipboardInteractor clipboardInteractor = new ClipboardInteractor();
        clipboardInteractor.watchClipboard();
        actionManager.register("undo", new UndoAction());
        actionManager.register("redo", new RedoAction());
        actionManager.register("copy", new CopyAction(getPositionsView(), getPositionsModel(), clipboardInteractor));
        actionManager.register("cut", new CutAction(getPositionsView(), getPositionsModel(), clipboardInteractor));
        actionManager.register("delete", new DeleteAction(getPositionsView(), getPositionsModel()));
        actionManager.register("new-position", new AddPositionAction(getPositionsView(), getPositionsModel(), getPositionsSelectionModel()));
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.