Package de.innovationgate.wgpublisher.lang

Examples of de.innovationgate.wgpublisher.lang.StaticLanguageBehaviour


            try {
                langBehaviour = (LanguageBehaviour) getModuleRegistry().instantiate(languageBehaviourMD);
            }
            catch (ModuleInstantiationException e) {
                getLog().error("Exception instantiating language behaviour '" + languageBehaviourMD.getTitle(Locale.getDefault()) + "'. Falling back to mode 'static'.", e);
                langBehaviour = new StaticLanguageBehaviour();
            }
        }
       
        // For Plugins (no registry yet)
        else {
            try {
                langBehaviour = (LanguageBehaviour) getLibraryLoader().loadClass(langBehaviourName).newInstance();
            }
            catch (Exception e) {
                getLog().error("Exception instantiating language behaviour '" + langBehaviourName + "'. Falling back to mode 'static'.", e);
                langBehaviour = new StaticLanguageBehaviour();
            }
        }
        return langBehaviour;
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.lang.StaticLanguageBehaviour

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.