Package org.impalaframework.service

Examples of org.impalaframework.service.NamedServiceEndpoint


     * (qualified using the factory bean prefix &), assuming this exists.
     */
    private static NamedServiceEndpoint getEndpoint(BeanFactory beanFactory,
            String beanName) {
       
        NamedServiceEndpoint endpoint = null;
        if (beanFactory != null) {
     
            String parentFactoryBeanName = "&" + beanName;
     
            try {
View Full Code Here


    if (!beansEncountered.contains(beanName) && !referenceMap.containsKey(beanName)) {
       
        if (SpringModuleServiceUtils.isSingleton(beanFactory, beanName)) {
   
            //only if there is a contribution end point corresponding with bean name do we register the service
            NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(beanFactory, beanName);
            if (hasRegisterableEndpoint(beanName, endPoint)) {     
              logger.info("Contributing bean " + beanName + " from module " + moduleName);
             
              final ServiceBeanReference service = new StaticSpringServiceBeanReference(bean);
                    final ServiceRegistryEntry serviceReference = serviceRegistry.addService(beanName, moduleName, service, beanClassLoader);
View Full Code Here

    }

    public final void testFindServiceEndPointNotPresent() {
        ClassPathXmlApplicationContext childOfChild = getContext("contribution/root-no-definition.xml")[0];

        NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(childOfChild.getBeanFactory(),
                "child");
        assertNull(endPoint);
    }
View Full Code Here

        Set<String> beanNames = contributions.keySet();
        processContributions(beanNames);
    }

    protected NamedServiceEndpoint getServiceEndpoint(String beanName, Object bean) {
        NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(getBeanFactory(), beanName);

        if (endPoint == null) {
            String proxyTypes = contributions.get(beanName);
            checkContributionClasses(bean, beanName, proxyTypes);
           
View Full Code Here

        if (!beansEncountered.contains(beanName) && !referenceMap.containsKey(beanName)) {
           
            if (SpringServiceBeanUtils.isSingleton(beanFactory, beanName)) {
       
                //only if there is a contribution end point corresponding with bean name do we register the service
                NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(beanFactory, beanName);
                if (hasRegisterableEndpoint(beanName, endPoint)) {         
                    logger.info("Contributing bean " + beanName + " from module " + moduleName);
                   
                    final ServiceBeanReference service = new StaticSpringServiceBeanReference(bean);
                    final ServiceRegistryEntry serviceReference = serviceRegistry.addService(beanName, moduleName, service, beanClassLoader);
View Full Code Here

        if (!beansEncountered.contains(beanName) && !referenceMap.containsKey(beanName)) {
           
            if (SpringServiceBeanUtils.isSingleton(beanFactory, beanName)) {
       
                //only if there is a contribution end point corresponding with bean name do we register the service
                NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(beanFactory, beanName);
                if (hasRegisterableEndpoint(beanName, endPoint)) {         
                    logger.info("Contributing bean " + beanName + " from module " + moduleName);
                   
                    final ServiceBeanReference service = new StaticSpringServiceBeanReference(bean);
                    final ServiceRegistryEntry serviceReference = serviceRegistry.addService(beanName, moduleName, service, beanClassLoader);
View Full Code Here

    protected final void processContributions(Collection<String> contributions) {
        for (String beanName : contributions) {

            Object bean = beanFactory.getBean(beanName);

            NamedServiceEndpoint endPoint = getServiceEndpoint(beanName, bean);

            //if contribution endpoint exists corresponding with bean name, then we add
            //to the contribution map, and register the bean
            if (endPoint != null) {
               
View Full Code Here

        Set<String> beanNames = contributions.keySet();
        processContributions(beanNames);
    }

    protected NamedServiceEndpoint getServiceEndpoint(String beanName, Object bean) {
        NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(getBeanFactory(), beanName);

        if (endPoint == null) {
            String proxyTypes = contributions.get(beanName);
            checkContributionClasses(bean, beanName, proxyTypes);
           
View Full Code Here

    protected final void processContributions(Collection<String> contributions) {
        for (String beanName : contributions) {

            Object bean = beanFactory.getBean(beanName);

            NamedServiceEndpoint endPoint = getServiceEndpoint(beanName, bean);

            //if contribution endpoint exists corresponding with bean name, then we add
            //to the contribution map, and register the bean
            if (endPoint != null) {
               
View Full Code Here

        Set<String> beanNames = contributions.keySet();
        processContributions(beanNames);
    }

    protected NamedServiceEndpoint getServiceEndpoint(String beanName, Object bean) {
        NamedServiceEndpoint endPoint = SpringModuleServiceUtils.findServiceEndpoint(getBeanFactory(), beanName);

        if (endPoint == null) {
            String proxyTypes = contributions.get(beanName);
            checkContributionClasses(bean, beanName, proxyTypes);
           
View Full Code Here

TOP

Related Classes of org.impalaframework.service.NamedServiceEndpoint

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.