Package org.glassfish.concurrent.config

Examples of org.glassfish.concurrent.config.ManagedThreadFactory


    // logger for this deployer
    private static Logger _logger = LogDomains.getLogger(ManagedThreadFactoryDeployer.class, LogDomains.RSR_LOGGER);

    @Override
    public void deployResource(Object resource, String applicationName, String moduleName) throws Exception {
        ManagedThreadFactory ManagedThreadFactoryRes = (ManagedThreadFactory) resource;

        if (ManagedThreadFactoryRes == null) {
            _logger.log(Level.INFO, "core.resourcedeploy_error");
            return;
        }

        String jndiName = ManagedThreadFactoryRes.getJndiName();
        String contextInfo = ManagedThreadFactoryRes.getContextInfo();

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "ManagedThreadFactoryDeployer.deployResource() : jndi-name ["+jndiName+"], " +
                    " context-info ["+contextInfo+"]");
        }


        ResourceInfo resourceInfo = new ResourceInfo(ManagedThreadFactoryRes.getJndiName(), applicationName, moduleName);
        ManagedThreadFactoryConfig config = new ManagedThreadFactoryConfig(ManagedThreadFactoryRes);

        javax.naming.Reference ref= new  javax.naming.Reference(
                javax.enterprise.concurrent.ManagedThreadFactory.class.getName(),
                "org.glassfish.concurrent.runtime.deployer.ConcurrentObjectFactory",
View Full Code Here


        }
    }

    @Override
    public void deployResource(Object resource) throws Exception {
        ManagedThreadFactory ManagedThreadFactoryResource =
                (ManagedThreadFactory) resource;
        ResourceInfo resourceInfo = ResourceUtil.getResourceInfo(ManagedThreadFactoryResource);
        deployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
    }
View Full Code Here

        deployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
    }

    @Override
    public void undeployResource(Object resource) throws Exception {
        ManagedThreadFactory ManagedThreadFactoryResource =
                (ManagedThreadFactory) resource;
        ResourceInfo resourceInfo = ResourceUtil.getResourceInfo(ManagedThreadFactoryResource);
        undeployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
    }
View Full Code Here

        undeployResource(resource, resourceInfo.getApplicationName(), resourceInfo.getModuleName());
    }

    @Override
    public void undeployResource(Object resource, String applicationName, String moduleName) throws Exception {
        ManagedThreadFactory ManagedThreadFactoryRes = (ManagedThreadFactory) resource;
        ResourceInfo resourceInfo = new ResourceInfo(ManagedThreadFactoryRes.getJndiName(), applicationName, moduleName);
        namingService.unpublishObject(resourceInfo, ManagedThreadFactoryRes.getJndiName());
    }
View Full Code Here

TOP

Related Classes of org.glassfish.concurrent.config.ManagedThreadFactory

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.