Package org.impalaframework.service

Examples of org.impalaframework.service.NamedServiceEndpoint


    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


     * @return {@link NamedServiceEndpoint} if present, otherwise null.
     */
    static NamedServiceEndpoint findServiceEndpoint(
            BeanFactory beanFactory, String beanName) {

        NamedServiceEndpoint endpoint = null;

        //continue looping until you find an endpoint or have no more parents to check through
        while (beanFactory != null && endpoint == null) {

            if (beanFactory instanceof HierarchicalBeanFactory) {
View Full Code Here

     * (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

     * @return {@link NamedServiceEndpoint} if present, otherwise null.
     */
    static NamedServiceEndpoint findServiceEndpoint(
            BeanFactory beanFactory, String beanName) {

        NamedServiceEndpoint endpoint = null;

        //continue looping until you find an endpoint or have no more parents to check through
        while (beanFactory != null && endpoint == null) {

            if (beanFactory instanceof HierarchicalBeanFactory) {
View Full Code Here

     * (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

        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

    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

    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

     * @return {@link NamedServiceEndpoint} if present, otherwise null.
     */
    static NamedServiceEndpoint findServiceEndpoint(
            BeanFactory beanFactory, String beanName) {

        NamedServiceEndpoint endpoint = null;

        //continue looping until you find an endpoint or have no more parents to check through
        while (beanFactory != null && endpoint == null) {

            if (beanFactory instanceof HierarchicalBeanFactory) {
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.