1 /*
  2  * ilib-ringo.js - glue code for rhino apps to load inside of an app server
  3  * using ringojs
  4  *
  5  * Copyright © 2015, JEDLSoft
  6  *
  7  * Licensed under the Apache License, Version 2.0 (the "License");
  8  * you may not use this file except in compliance with the License.
  9  * You may obtain a copy of the License at
 10  *
 11  *     http://www.apache.org/licenses/LICENSE-2.0
 12  *
 13  * Unless required by applicable law or agreed to in writing, software
 14  * distributed under the License is distributed on an "AS IS" BASIS,
 15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 16  *
 17  * See the License for the specific language governing permissions and
 18  * limitations under the License.
 19  */
 20 
 21 // ringo already has a CommonJS require system, so we don't have to implement
 22 // our own like we do in plain jane rhino
 23 
 24 var RhinoLoader = require("../lib/RhinoLoader.js");
 25 var ilib = require("../lib/ilib.js");
 26 
 27 ilib._dyncode = true; // indicate that we are using dynamically loaded code
 28 ilib._dyndata = true;
 29 
 30 ilib.setLoaderCallback(new RhinoLoader());
 31 
 32 module.exports = ilib;