Examples of ElasticContext


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

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

        }
    }

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

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

        }
    }

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

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

        }
    }

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

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

        }

        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
Copyright © 2018 www.massapi.com. 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.