Examples of register()


Examples of openbook.tools.CommandProcessor.register()

     * @throws Exception
     */
   
    protected final void run(String[] args) throws Exception {
        CommandProcessor options = new CommandProcessor();
        options.register(true, "-sourcepath").setDefault(CURRENT_DIRECTORY);
        options.register(true, "-d").setDefault(CURRENT_DIRECTORY);
        options.register(true, "-extension").setDefault("");
        options.register(true, "-verbose").setDefault("false");
        registerOptions(options);
       

Examples of org.apache.ace.client.repository.stateful.StatefulGatewayObject.register()

            @Override
            protected void associateFromRight(String left, String right) {
                StatefulGatewayObject target = getTarget(right);
                if (!target.isRegistered()) {
                    target.register();
                    target.setAutoApprove(true);
                }
                m_license2GatewayAssociationRepository.create(getDistribution(left), target.getGatewayObject());
            }
        });

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.register()

    }
   
    // register second target
    runAndWaitForEvent(new Callable<Object>() {
        public Object call() throws Exception {
            sgo2.register();
            return null;
        }
    }, false, TargetObject.TOPIC_ADDED, TOPIC_STATUS_CHANGED);
   
    // do checks

Examples of org.apache.aries.samples.ariestrader.api.TradeServices.register()

            if (i == 0) {
                initialBalance = 1000000; // uid:0 starts with a cool million.
            }
            try {
                AccountDataBean accountData =
                    tradeServices.register(userID, "xxx", fullname, address,
                        email, creditcard, new BigDecimal(initialBalance));
                if (accountData != null) {
                    if (i % 50 == 0) {
                        out.print("<BR>Account# " + accountData.getAccountID()
                            + " userID=" + userID);

Examples of org.apache.avalon.phoenix.interfaces.SystemManager.register()

            (SystemManager)getServiceManager().lookup( SystemManager.ROLE );

        final SystemManager componentManager =
            systemManager.getSubContext( null, "component" );

        componentManager.register( ManagementRegistration.EMBEDDOR.getName(),
                                   this,
                                   ManagementRegistration.EMBEDDOR.getInterfaces() );

        for( int i = 0; i < m_entries.length; i++ )
        {

Examples of org.apache.avro.repo.Subject.register()

    if (subject == null) {
      subject = client.register(topic, "org.apache.avro.repo.Validator");
    }

    try {
      return subject.register(schema.toString()).getId();
    } catch (SchemaValidationException e) {
      throw new SchemaRegistryException(e);
    }
  }

Examples of org.apache.axiom.attachments.AttachmentCacheMonitor.register()


            File aFile = new File("A");
            aFile.createNewFile();
            String aFileName = aFile.getCanonicalPath();
            acm.register(aFileName);

            t.sleep(INTERVAL);

            File bFile = new File("B");
            bFile.createNewFile();

Examples of org.apache.axis.encoding.TypeMapping.register()

        //register our type descriptors
        Service service = ((ServiceImpl) serviceImpl).getService();
        AxisEngine axisEngine = service.getEngine();
        TypeMappingRegistry typeMappingRegistry = axisEngine.getTypeMappingRegistry();
        TypeMapping typeMapping = typeMappingRegistry.getOrMakeTypeMapping(encodingStyle);
        typeMapping.register(BigInteger.class,
                Constants.XSD_UNSIGNEDLONG,
                new SimpleSerializerFactory(BigInteger.class, Constants.XSD_UNSIGNEDLONG),
                new SimpleDeserializerFactory(BigInteger.class, Constants.XSD_UNSIGNEDLONG));
        typeMapping.register(URI.class,
                Constants.XSD_ANYURI,

Examples of org.apache.axis.encoding.TypeMappingRegistry.register()

        // Create a TypeMapping and register the Bean serializer/deserializer
        TypeMappingRegistry reg = context.getTypeMappingRegistry();
        TypeMapping tm = (TypeMapping) reg.createTypeMapping();
        // The "" namespace is literal (no encoding).
        tm.setSupportedEncodings(new String[] {Constants.URI_DEFAULT_SOAP_ENC});
        reg.register(Constants.URI_DEFAULT_SOAP_ENC, tm);

        QName beanQName = new QName("typeNS", "TheBean");
        tm.register(AttributeBean.class,
                    beanQName,
                    new BeanSerializerFactory(AttributeBean.class, beanQName),

Examples of org.apache.blur.index.IndexDeletionPolicyReader.register()

    long gen = 0;
    for (int i = 0; i < 100; i++) {
      if (reader == null) {
        reader = DirectoryReader.open(writer, true);
        gen = reader.getIndexCommit().getGeneration();
        indexDeletionPolicy.register(gen);
      } else {
        DirectoryReader old = reader;
        reader = DirectoryReader.openIfChanged(old, writer, true);
        if (reader == null) {
          reader = old;
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.