Initialize a new `FrameworkRouter`.

@param {Framework} framework
@api private
334429
function FrameworkRouter(framework) {
  debug('create framework router');

  this.framework = framework;
  this.encoder = lodash.clone(http.encoder);
  this.decoder = lodash.clone(http.decoder);
}
583795
public function init()
    {
        $this->routes = $this->routes->getRouteCollections();

        $this->dispatcher = $this->createDispatcher();

        $this->currentURL = $this->request->getPathInfo();

        $this->dispatch();
    }
781065
def load_framework!
      if @orm
        unless FRAMEWORKS.has_key?(@framework)
          raise(UnknownFramework,"Unknown framework #{@framework}",caller)
        end

        extend FRAMEWORKS[@framework]

        initialize_framework if respond_to?(:initialize_framework)
      end
    end
807901
function initBrowser() {
  if (window.chrome) {
    Object.assign(module.exports, chromeConstants);
  } else {
    Object.assign(module.exports, braveConstants);
  }
}
689441
function createRouter(modules) {
  debug('Creating a new router. Modules: ' + JSON.stringify(modules, null, 3));

  var router = express();
  router.use(bodyParser.json());

  // Map the requested entity path with the actual serverside entity
  router.use('/isomorphine', methodLoader(modules));

  // Proxy request pipeline
  router.post('/isomorphine/*', getPayload, callEntityMethod, serve);

  return router;
}
1131405
@PostConstruct
    public synchronized void initialize() {
        final FwWebDirection direction = assistWebDirection();
        defaultPath = direction.assistCookieResourceProvider().provideDefaultPath();
        if (defaultPath == null) {
            final String msg = "No assist for the default path of cookie.";
            throw new FwRequiredAssistNotFoundException(msg);
        }
        defaultExpire = direction.assistCookieResourceProvider().provideDefaultExpire();
        if (defaultExpire == null) {
            final String msg = "No assist for the default expire of cookie.";
            throw new FwRequiredAssistNotFoundException(msg);
        }
        showBootLogging();
    }
479727
function(name, url, params, options) {
        OpenLayers.Layer.prototype.initialize.apply(this, [name, options]);
        this.url = url;
        if (!this.params) {
            this.params = OpenLayers.Util.extend({}, params);
        }
    }
849284
function LodeRactive( options ) {

  if ( typeof Ractive === 'undefined' ) throw Error('Couldn\'t find an instance of Ractive, you need to have it in order to use this framework.');

  if ( options && typeof options.DEBUG !== 'undefined') Ractive.DEBUG = options.DEBUG;

  this.router = new Router( options );

}
951762
def call(test_framework)
      begin
        initializers.find { |i| i.match? test_framework }.start [], {}
      rescue ArgumentError => e
        $stderr.puts e.message
        exit 0
      end

      Initializers::CommonInitializer.start [], {}
    end
814961
function init(msg) {
      function iFrameLoaded() {
        trigger('iFrame.onload', msg, iframe, undefined, true)
        checkReset()
      }

      function createDestroyObserver(MutationObserver) {
        if (!iframe.parentNode) {
          return
        }

        var destroyObserver = new MutationObserver(function(mutations) {
          mutations.forEach(function(mutation) {
            var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array
            removedNodes.forEach(function(removedNode) {
              if (removedNode === iframe) {
                closeIFrame(iframe)
              }
            })
          })
        })
        destroyObserver.observe(iframe.parentNode, {
          childList: true
        })
      }

      var MutationObserver = getMutationObserver()
      if (MutationObserver) {
        createDestroyObserver(MutationObserver)
      }

      addEventListener(iframe, 'load', iFrameLoaded)
      trigger('init', msg, iframe, undefined, true)
    }
945972
private void init() {
        setTitle("Validation Framework Test");
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        // Create content pane
        JPanel contentPane = new JPanel(new MigLayout("fill, wrap 1"));
        setContentPane(contentPane);

        // Tabbed pane
        JTabbedPane tabbedPane = new JTabbedPane();
        contentPane.add(tabbedPane, "grow");

        // Create tabs
        tabbedPane.add("Constant info", createTabConstantInfo());
        tabbedPane.add("Disabled", createTabDisabled());
        tabbedPane.add("Single validation", createTabSingleCompWithValidation());
        tabbedPane.add("Split pane", createTabSplitPane());
        tabbedPane.add("Scroll pane", createTabScrollPane());
        tabbedPane.add("Small panels", createTabSmallPanels());

        // Set size
        Dimension size = new Dimension(640, 480);
        setSize(size);

        // Set location
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        setLocation((screenSize.width - size.width) / 2, (screenSize.height - size.height) / 3);
    }
1363618
private void init() {
        setTitle("Validation Framework Test");
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        // Add contents
        JPanel contentPane = new JPanel(new MigLayout("fill, wrap 1", "[]", "[grow]unrelated[]"));
        setContentPane(contentPane);

        contentPane.add(new JScrollPane(table), "grow");
        installValidators(table);
        contentPane.add(changeButton, "align right");

        // Set size
        pack();
        Dimension size = getSize();
        size.width += 100;
        setMinimumSize(size);

        // Set location
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        setLocation((screenSize.width - size.width) / 2, (screenSize.height - size.height) / 3);
    }
110990
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.clearing.js' : 'foundation.min.js'
        );
        Html::addCssClass($this->htmlOptions, Enum::CLEARING_THUMBS);
        ArrayHelper::addValue('data-clearing', 'data-clearing', $this->htmlOptions);
        parent::init();
    }
815084
protected void initialize() {
        eventManager.subscribe(Constants.REFRESH_EVENT, refreshListener);
        appFramework.registerObject(FrameworkController.this);
        comp.addEventListener("destroy", (event) -> {
            cleanup();
        }
537167
function () {
            // link the frame
            var content = ariaUtilsDom.getDomElementChild(this.getDom(), 0);
            this._frame.linkToDom(content);

            aria.widgets.container.Div.superclass._init.call(this);
        }
365024
function initEnhancers(routes) {
    invariant(routes.filter(actionConfig => !actionConfig.driverInstance).length===0, 'Routes must have instantiated drivers');

    return routes
        .filter(actionConfig => actionConfig.driverInstance.middleware)
        .map(actionConfig => actionConfig.driverInstance.middleware());
}
981379
function(routes, callback) {
    var newRoutes = {};

    // Add a route.
    newRoutes['/test'] = {
      callback: function(request, response) {
        response.send('Testing!');
      }
    };

    // Add another route.
    newRoutes['/test-altering'] = {
      callback: function(request, response) {
        response.send('Testing!');
      }
    };

    callback(null, newRoutes);
  }