Package com.comphenix.protocol.reflect.compiler

Examples of com.comphenix.protocol.reflect.compiler.BackgroundCompiler


   
    // Automatically compile the structure modifier
    if (compile && !(result instanceof CompiledStructureModifier)) {
      // Compilation is many orders of magnitude slower than synchronization
      synchronized (compiling) {
        final BackgroundCompiler compiler = BackgroundCompiler.getInstance();
       
        if (!compiling.contains(type) && compiler != null) {
          compiler.scheduleCompilation(result, new CompileListener<Object>() {
            @Override
            public void onCompiled(StructureModifier<Object> compiledModifier) {
              structureModifiers.put(type, compiledModifier);
            }
          });
View Full Code Here


        return;
      }
     
      // Initialize background compiler
      if (backgroundCompiler == null && config.isBackgroundCompilerEnabled()) {
        backgroundCompiler = new BackgroundCompiler(getClassLoader(), reporter);
        BackgroundCompiler.setInstance(backgroundCompiler);
       
        logger.info("Started structure compiler thread.");
      } else {
        logger.info("Structure compiler thread has been disabled.");
View Full Code Here

TOP

Related Classes of com.comphenix.protocol.reflect.compiler.BackgroundCompiler

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.