Sha256: 75bd03baf3c1fad13413f3a6180fc55de3d6b7ba60b63769d4134486cb81b0bc
Contents?: true
Size: 700 Bytes
Versions: 12
Compression:
Stored size: 700 Bytes
Contents
package com.calatrava.bridge; import java.io.IOException; public class KernelBridge { private AssetRepository assetRepository; private RhinoService rhinoService; public KernelBridge(AssetRepository assetRepository, RhinoService rhinoService) throws IOException { this.assetRepository = assetRepository; this.rhinoService = rhinoService; //load js libraries loadLibrary("calatrava/scripts/underscore.js"); //load bridge loadLibrary("calatrava/scripts/env.js"); loadLibrary("calatrava/scripts/bridge.js"); } public void loadLibrary(String libraryName) throws IOException { rhinoService.load(assetRepository.assetReader(libraryName), libraryName); } }
Version data entries
12 entries across 12 versions & 1 rubygems