Package net.jini.security

Examples of net.jini.security.BasicProxyPreparer


        /* Get the ProxyPreparer for passed in OperationalStringManager
         * instances */
        operationalStringManagerPreparer = (ProxyPreparer)config.getEntry(getConfigComponent(),
                                                                          "operationalStringManagerPreparer",
                                                                          ProxyPreparer.class,
                                                                          new BasicProxyPreparer());
        /* Check for JMXConnection */
        addAttributes(JMXUtil.getJMXConnectionEntries());

        /* Add service UIs programmatically */
        addAttributes(getServiceUIs());
View Full Code Here


                                                                                 DEFAULT_LEASE_TIME));
        /* Get the ProxyPreparer for ServiceInstantiator instances */
        instantiatorPreparer = (ProxyPreparer)config.getEntry(CONFIG_COMPONENT,
                                                              "instantiatorPreparer",
                                                              ProxyPreparer.class,
                                                              new BasicProxyPreparer());

        /* Create a ThreadPool for provisioning notification */
        //provisioningPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(provisioningPoolMaxThreads);
        provisioningPool = (ThreadPoolExecutor) Executors.newCachedThreadPool();

View Full Code Here

            /* Get the ProxyPreparer for ServiceProvisionListener instances */
            serviceProvisionListenerPreparer = (ProxyPreparer) myConfig.getEntry(CONFIG_COMPONENT,
                                                                                 "serviceProvisionListenerPreparer",
                                                                                 ProxyPreparer.class,
                                                                                 new BasicProxyPreparer());
        } catch (ConfigurationException e) {
            logger.warn("Getting opStringManager Exporter", e);
        }

        proxy = (OperationalStringManager) exporter.export(this);
View Full Code Here

        throws IOException, ConfigurationException {

        proxyPreparer = (ProxyPreparer)config.getEntry(CLI.CONFIG_COMPONENT,
                                                       "proxyPreparer",
                                                       ProxyPreparer.class,
                                                       new BasicProxyPreparer());
        adminProxyPreparer = (ProxyPreparer)config.getEntry(CLI.CONFIG_COMPONENT,
                                                            "adminProxyPreparer",
                                                            ProxyPreparer.class,
                                                            new BasicProxyPreparer());
        int serviceInfoPoolSize = (Integer) config.getEntry(CLI.CONFIG_COMPONENT, "serviceInfoPoolSize", int.class, 5);
        serviceInfoFetchPool = Executors.newFixedThreadPool(serviceInfoPoolSize);

        DiscoveryManagementPool discoPool = DiscoveryManagementPool.getInstance();
        DiscoveryManagement discoMgr = discoPool.getDiscoveryManager("cli", groups, locators, null, config);
View Full Code Here

        /* Get the ProxyPreparer */
        ProxyPreparer servicePreparer = (ProxyPreparer)Config.getNonNullEntry(config,
                                                                              COMPONENT,
                                                                              "servicePreparer",
                                                                              ProxyPreparer.class,
                                                                              new BasicProxyPreparer());
        synchronized(RioServiceDescriptor.class) {
            /* supplant global policy 1st time through */
            if(globalPolicy == null) {
                //initialGlobalPolicy = Policy.getPolicy();
                initialGlobalPolicy = new PolicyFileProvider(getPolicy());
View Full Code Here

           
            ProxyPreparer servicePreparer = (ProxyPreparer)Config.getNonNullEntry(context.getConfiguration(),
                                                                                  CONFIG_COMPONENT,
                                                                                  "servicePreparer",
                                                                                  ProxyPreparer.class,
                                                                                  new BasicProxyPreparer());
            if(logger.isTraceEnabled()) {
                logger.trace("Getting the proxy");
            }
            Object proxy = created.getProxy();
            if(logger.isTraceEnabled()) {
View Full Code Here

     */                                 
    public BasicEventConsumer(final EventDescriptor edTemplate,
                              final RemoteServiceEventListener listener,
                              final MarshalledObject handback,
                              final Configuration config) throws Exception {
        ProxyPreparer basicLeasePreparer = new BasicProxyPreparer();


        if(config == null)
            this.config = EmptyConfiguration.INSTANCE;
        else
View Full Code Here

        /* Get the ProxyPreparer for ServiceInstantiator instances */
        listenerPreparer = (ProxyPreparer)config.getEntry(CONFIG_COMPONENT,
                                                          "instantiatorPreparer",
                                                          ProxyPreparer.class,
                                                          new BasicProxyPreparer());

        eventManager = (EventManager) config.getEntry(CONFIG_COMPONENT,
                                                      "eventManager",
                                                      EventManager.class,
                                                      new PersistentEventManager());
View Full Code Here

TOP

Related Classes of net.jini.security.BasicProxyPreparer

Copyright © 2018 www.massapicom. 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.