angular-cn/modules/angular2/src/core/di.ts

48 lines
1.1 KiB
TypeScript
Raw Normal View History

/**
* @module
* @description
2015-04-17 06:29:05 -04:00
* The `di` module provides dependency injection container services.
*/
export {
InjectMetadata,
OptionalMetadata,
InjectableMetadata,
SelfMetadata,
HostMetadata,
SkipSelfMetadata,
DependencyMetadata
2015-08-20 17:28:25 -04:00
} from './src/core/di/metadata';
// we have to reexport * because Dart and TS export two different sets of types
2015-08-20 17:28:25 -04:00
export * from './src/core/di/decorators';
2015-08-20 17:28:25 -04:00
export {forwardRef, resolveForwardRef, ForwardRefFn} from './src/core/di/forward_ref';
export {
Injector,
ProtoInjector,
BindingWithVisibility,
DependencyProvider,
Visibility,
UNDEFINED
2015-08-20 17:28:25 -04:00
} from './src/core/di/injector';
export {
Binding,
BindingBuilder,
ResolvedBinding,
ResolvedFactory,
Dependency,
bind
} from './src/core/di/binding';
2015-08-20 17:28:25 -04:00
export {Key, KeyRegistry, TypeLiteral} from './src/core/di/key';
export {
NoBindingError,
AbstractBindingError,
CyclicDependencyError,
InstantiationError,
InvalidBindingError,
NoAnnotationError,
OutOfBoundsError
2015-08-20 17:28:25 -04:00
} from './src/core/di/exceptions';
export {OpaqueToken} from './src/core/di/opaque_token';