Package com.sun.jersey.core.spi.component

Examples of com.sun.jersey.core.spi.component.ComponentProvider


        } else if (icp instanceof IoCInstantiatedComponentProvider) {
            IoCInstantiatedComponentProvider iicp = (IoCInstantiatedComponentProvider)icp;
            return new InstantiatedSingleton(getInjectableProviderContext(), iicp, c);
        } else if (icp instanceof IoCProxiedComponentProvider) {
            IoCProxiedComponentProvider ipcp = (IoCProxiedComponentProvider)icp;
            ComponentProvider cp = super._getComponentProvider(c);
            // Problem creating the component provider
            if (cp == null)
                return null;

            return new ProxiedSingletonWrapper(ipcp, cp, c);
View Full Code Here


        private final Application originalApp;

        private final DefaultResourceConfig adaptedApp;

        private ApplicationHolder(ProviderFactory pf) {
            final ComponentProvider cp = pf.getComponentProvider(appClass);
            if (cp == null) {
                throw new ContainerException("The Application class " + appClass.getName() + " could not be instantiated");
            }
            this.originalApp = (Application) cp.getInstance();

            if ((originalApp.getClasses() == null || originalApp.getClasses().isEmpty())
                    && (originalApp.getSingletons() == null || originalApp.getSingletons().isEmpty())) {

                LOGGER.info("Instantiated the Application class " + appClass.getName() +
View Full Code Here

        private final Application originalApp;

        private final DefaultResourceConfig adaptedApp;

        private ApplicationHolder(ProviderFactory pf) {
            final ComponentProvider cp = pf.getComponentProvider(appClass);
            if (cp == null) {
                throw new ContainerException("The Application class " + appClass.getName() + " could not be instantiated");
            }
            this.originalApp = (Application)cp.getInstance();

            if ((originalApp.getClasses() == null || originalApp.getClasses().isEmpty()) &&
                    (originalApp.getSingletons() == null || originalApp.getSingletons().isEmpty())) {
                LOGGER.info("Instantiated the Application class " + appClass.getName() +
                        ". The following root resource and provider classes are registered: " + defaultClasses);
View Full Code Here

        } else if (icp instanceof IoCInstantiatedComponentProvider) {
            IoCInstantiatedComponentProvider iicp = (IoCInstantiatedComponentProvider)icp;
            return new SingletonWrapper(getInjectableProviderContext(), iicp, c);
        } else if (icp instanceof IoCProxiedComponentProvider) {
            IoCProxiedComponentProvider ipcp = (IoCProxiedComponentProvider)icp;
            ComponentProvider cp = super._getComponentProvider(c);
            return new ProxiedSingletonWrapper(ipcp, cp, c);
        }
        throw new UnsupportedOperationException();
    }
View Full Code Here

        } else if (icp instanceof IoCInstantiatedComponentProvider) {
            IoCInstantiatedComponentProvider iicp = (IoCInstantiatedComponentProvider)icp;
            return new InstantiatedSingleton(getInjectableProviderContext(), iicp, c);
        } else if (icp instanceof IoCProxiedComponentProvider) {
            IoCProxiedComponentProvider ipcp = (IoCProxiedComponentProvider)icp;
            ComponentProvider cp = super._getComponentProvider(c);
            // Problem creating the component provider
            if (cp == null)
                return null;

            return new ProxiedSingletonWrapper(ipcp, cp, c);
View Full Code Here

        private final Application originalApp;

        private final DefaultResourceConfig adaptedApp;

        private ApplicationHolder(ProviderFactory pf) {
            final ComponentProvider cp = pf.getComponentProvider(appClass);
            if (cp == null) {
                throw new ContainerException("The Application class " + appClass.getName() + " could not be instantiated");
            }
            this.originalApp = (Application)cp.getInstance();

            if ((originalApp.getClasses() == null || originalApp.getClasses().isEmpty()) &&
                    (originalApp.getSingletons() == null || originalApp.getSingletons().isEmpty())) {
                LOGGER.info("Instantiated the Application class " + appClass.getName() +
                        ". The following root resource and provider classes are registered: " + defaultClasses);
View Full Code Here

TOP

Related Classes of com.sun.jersey.core.spi.component.ComponentProvider

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.