Package org.nimbustools.messaging.gt4_0_elastic.context

Examples of org.nimbustools.messaging.gt4_0_elastic.context.ElasticContext


    // This class is instantiated with no-arg constructor outside of any IoC
    // system etc., so we hook into one here.

    protected synchronized void findManager() throws Exception {
        if (this.rm == null) {
            final ElasticContext ctx =
                    ElasticContext.discoverElasticContext();
            this.rm = ctx.findRM();
        }
    }
View Full Code Here


        }
    }

    protected synchronized void findGeneral() throws Exception {
        if (this.general == null) {
            final ElasticContext ctx =
                    ElasticContext.discoverElasticContext();
            this.general = ctx.findGeneral();
        }
    }
View Full Code Here

        }
    }

    protected synchronized void findSecurity() throws Exception {
        if (this.security == null) {
            final ElasticContext ctx =
                    ElasticContext.discoverElasticContext();
            this.security = ctx.findSecurity();
        }
    }
View Full Code Here

        }
    }

    protected synchronized void findImage() throws Exception {
        if (this.image == null) {
            final ElasticContext ctx =
                    ElasticContext.discoverElasticContext();
            this.image = ctx.findImage();
        }
    }
View Full Code Here

        }

        Object idMappings = null;
        try {
            if (this.thisAppCtx == null) {
                ElasticContext thatAppCtx = ElasticContext.discoverElasticContext();
                idMappings = thatAppCtx.findBeanByID(ID_MAPPING_BEAN_NAME);
            } else {

                try {
                    idMappings = this.thisAppCtx.getBean(ID_MAPPING_BEAN_NAME);
                } catch (NoSuchBeanDefinitionException e) {
                    ElasticContext thatAppCtx = ElasticContext.discoverElasticContext();
                    idMappings = thatAppCtx.findBeanByID(ID_MAPPING_BEAN_NAME);
                }
            }
        } catch (Exception e) {
            throw new RuntimeException("Problem manually retrieving bean '" +
                                              ID_MAPPING_BEAN_NAME + "': " + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.nimbustools.messaging.gt4_0_elastic.context.ElasticContext

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.