Home Identifier Source
import {Binding} from 'injector/lib/binding.js'
public class | source

Binding

Constructor Summary

Public Constructor
public

constructor(token: String, object: Object)

This is a Binding

Member Summary

Public Members
public

object: *

public

token: *

Method Summary

Public Methods
public

Create a ResolvedBinding from the current Binding

Public Constructors

public constructor(token: String, object: Object) source

This is a Binding

Params:

NameTypeAttributeDescription
token String

This is the token of the Binding

object Object

This if the object concerned, can be toClass, toValue, toFactory

Public Members

public object: * source

public token: * source

Public Methods

public resolve(): ResolvedBinding source

Create a ResolvedBinding from the current Binding

Return:

ResolvedBinding

The resolvedBinding generated