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

Version Path
calatrava-0.6.11 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.10 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.9 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.8 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.7 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.6 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.5 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.4 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.3 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.2 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.1 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java
calatrava-0.6.0 lib/calatrava/templates/droid/calatrava/src/com/calatrava/bridge/KernelBridge.java