2015-05-04 11:11:22 -07:00
|
|
|
library angular2.di.decorators;
|
2015-04-28 18:17:00 -07:00
|
|
|
|
2015-07-08 12:04:24 -07:00
|
|
|
import 'metadata.dart';
|
|
|
|
|
export 'metadata.dart';
|
2015-05-01 14:05:19 -07:00
|
|
|
|
2015-07-08 12:04:24 -07:00
|
|
|
/**
|
|
|
|
|
* {@link InjectMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Inject extends InjectMetadata {
|
|
|
|
|
const Inject(dynamic token): super(token);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link OptionalMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Optional extends OptionalMetadata {
|
|
|
|
|
const Optional(): super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link InjectableMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Injectable extends InjectableMetadata {
|
|
|
|
|
const Injectable([VisibilityMetadata visibility = unbounded]): super(visibility);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link SelfMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Self extends SelfMetadata {
|
|
|
|
|
const Self(): super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link ParentMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Parent extends ParentMetadata {
|
|
|
|
|
const Parent({bool self}): super(self:self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link AncestorMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Ancestor extends AncestorMetadata {
|
|
|
|
|
const Ancestor({bool self}): super(self:self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@link UnboundedMetadata}.
|
|
|
|
|
*/
|
|
|
|
|
class Unbounded extends UnboundedMetadata {
|
|
|
|
|
const Unbounded({bool self}): super(self:self);
|
|
|
|
|
}
|