Package org.bladerunnerjs.utility.filemodification

Examples of org.bladerunnerjs.utility.filemodification.RealTimeAccessor


    mkfile("root-dir/outgoing-dir/watched-file");
    mkfile("root-dir/outgoing-dir/unwatched-file");
    mkfile("root-dir/control-file");
   
    // initialize watching service
    fileModificationService.initialise(tempDir, new RealTimeAccessor(), new BRJSFileInfoAccessor(fileModificationService, new StubLoggerFactory()));
   
    // watch files and directories
    watch("root-dir");
    watch("root-dir/active-dir");
    watch("root-dir/active-dir/active-file");
View Full Code Here


 
  public BRJS createNonTestModel(File brjsDir, LogMessageStore logStore, LoggerFactory loggerFactory, FileModificationService fileModificationService) throws InvalidSdkDirectoryException
  {
    PluginLocator pluginLocator = new BRJSPluginLocator();
    AppVersionGenerator appVersionGenerator = new TimestampAppVersionGenerator();
    BRJS brjs = new BRJS(brjsDir, pluginLocator, loggerFactory, new RealTimeAccessor(), appVersionGenerator);
    brjs.setFileModificationService(fileModificationService);
   
    return brjs;
  }
View Full Code Here

    new File(tempSdkDir, "sdk").mkdir();
    MockPluginLocator pluginLocator = new MockPluginLocator();
    pluginLocator.assetLocationPlugins.addAll(PluginLoader.createPluginsOfType(Mockito.mock(BRJS.class), AssetLocationPlugin.class, VirtualProxyAssetLocationPlugin.class));
    pluginLocator.assetPlugins.addAll(PluginLoader.createPluginsOfType(Mockito.mock(BRJS.class), AssetPlugin.class, VirtualProxyAssetPlugin.class));
   
    BRJS brjs = new BRJS(tempSdkDir, pluginLocator, new StubLoggerFactory(), new RealTimeAccessor(), new MockAppVersionGenerator());
   
    return brjs;
  }
View Full Code Here

  //TODO: remove this once we've removed all legacy code
  public static BRJS root;
 
  public static synchronized BRJS initializeModel(File brjsDir) throws InvalidSdkDirectoryException {
    if (model == null) {
      model = new BRJS(brjsDir, new BRJSPluginLocator(), new SLF4JLoggerFactory(), new RealTimeAccessor(), new TimestampAppVersionGenerator());
      root = model;
    }
   
    return model;
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.utility.filemodification.RealTimeAccessor

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.