Package org.gocha.jdk

Examples of org.gocha.jdk.LocalMessagesImplementor


        if( messages!=null )return;
        if (appd== null) {           
            throw new IllegalArgumentException("appd==null");
        }
       
        LocalMessagesImplementor lmi = new LocalMessagesImplementor();
        lmi.setCompiler(new org.gocha.jdk.JaninoCompiler());
        lmi.setClassName(Messages.class.getName()+"Impl");
        lmi.setInterface(Messages.class);
        lmi.setClassRootDirectory(new File(new File(appd,"cache"),"classes"));
        lmi.setMessageDirectory(new File(appd,"locale"));
       
        // Устанавливаются по умолчанию
//        lmi.setCacheByteCode(true);
//        lmi.setFileFormat(LocalMessagesImplementor.FileFormat.xml);
//        lmi.setMessageFilePrefix("messages");
       
        Object o = lmi.getInstance();
        if( o instanceof Messages ){
            messages = (Messages)o;
            return;
        }
        throw new Error( "failed init messages" );
View Full Code Here

TOP

Related Classes of org.gocha.jdk.LocalMessagesImplementor

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.