Examples of register()


Examples of org.apache.ode.utils.NSContext.register()

            XQueryDeclarations declarations = new XQueryDeclarations();           
            NSContext nsContext = source.getNamespaceContext();
          Set<String> prefixes = nsContext.getPrefixes();
          if (!nsContext.getUriSet().contains(Namespaces.ODE_EXTENSION_NS)) {
            nsContext.register("ode", Namespaces.ODE_EXTENSION_NS);
          }
          for (String prefix : prefixes) {
            String uri = nsContext.getNamespaceURI(prefix);
            staticContext.declareNamespace(prefix, uri);
            if ("".equals(prefix)) {

Examples of org.apache.openejb.config.provider.ProviderManager.register()

        { // Add Color
            final ServiceProvider color = new ServiceProvider(Color.class, "Color", "Resource");
            color.getProperties().setProperty("red", "0");
            color.getProperties().setProperty("green", "0");
            color.getProperties().setProperty("blue", "0");
            manager.register("default", color);
        }

        { // Assert Color
            // Must be able to retrieve provider and properties in a case-insensitive manner
            final ServiceProvider provider = manager.get("DeFaulT", "CoLoR");

Examples of org.apache.openejb.resource.jdbc.driver.AlternativeDriver.register()

        final String jdbcUrl = properties.getProperty("JdbcUrl");

        if (Driver.class.isAssignableFrom(impl) && jdbcUrl != null) {
            try {
                final AlternativeDriver driver = new AlternativeDriver((Driver) impl.newInstance(), jdbcUrl);
                driver.register();
            } catch (final SQLException e) {
                throw new IllegalStateException(e);
            }
        }

Examples of org.apache.openjpa.kernel.PreparedQueryCache.register()

            if (cache.get(_id) != null) {
                ignorePreparedQuery();
            }
            return false;
        }
        Boolean registered = cache.register(_id, _query, fetch);
        boolean alreadyCached = (registered == null);
        String lang = _query.getLanguage();
        QueryStatistics<String> stats = cache.getStatistics();
        if (alreadyCached && LANG_PREPARED_SQL.equals(lang)) {
            PreparedQuery pq = _em.getPreparedQuery(_id);

Examples of org.apache.qpid.server.configuration.management.ConfigurationManagementMBean.register()

        try
        {
            configureLoggingManagementMBean(logConfigFile, logWatchTime);

            ConfigurationManagementMBean configMBean = new ConfigurationManagementMBean();
            configMBean.register();

            ServerInformationMBean sysInfoMBean = new ServerInformationMBean(config);
            sysInfoMBean.register();

Examples of org.apache.qpid.server.information.management.ServerInformationMBean.register()

            ConfigurationManagementMBean configMBean = new ConfigurationManagementMBean();
            configMBean.register();

            ServerInformationMBean sysInfoMBean = new ServerInformationMBean(config);
            sysInfoMBean.register();


            String[] portStr = commandLine.getOptionValues("p");

            Set<Integer> ports = new HashSet<Integer>();

Examples of org.apache.qpid.server.logging.management.LoggingManagementMBean.register()

    private void configureLoggingManagementMBean(File logConfigFile, int logWatchTime) throws Exception
    {
        LoggingManagementMBean blm = new LoggingManagementMBean(logConfigFile.getPath(),logWatchTime);

        blm.register();
    }
}

Examples of org.apache.qpid.server.security.access.AMQUserManagementMBean.register()

                _logger.warn("Unable to load access file:" + jmxaccesssFile);
            }

            try
            {
                _mbean.register();
            }
            catch (AMQException e)
            {
                _logger.warn("Unable to register user management MBean");
            }

Examples of org.apache.qpid.server.security.access.management.AMQUserManagementMBean.register()

                _logger.warn("Unable to load access file:" + jmxaccesssFile);
            }

            try
            {
                _mbean.register();
            }
            catch (AMQException e)
            {
                _logger.warn("Unable to register user management MBean");
            }

Examples of org.apache.qpid.server.security.auth.management.AMQUserManagementMBean.register()

                throw new ConfigurationException("Principal-database not found");
            }
            final PrincipalDatabase database = dbs.iterator().next();

            _mbean.setPrincipalDatabase(database);
            _mbean.register();
        }
        catch (JMException e)
        {
            _logger.warn("User management disabled as unable to create MBean:" + e);
        }
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.