Bean class

==================================================== @Annotation Bean

实例注解,使用该注解的类会自动加入到 ApplicationContext 中,无参的构造函数会在启动时被系统调用 然后可以通过 mirrors 扫描且应用

example:

@bean
class TestService {

  /// default constructor will be invoked automatic
  TestService() {

  }
}

@author luodongseu

Constructors

Bean({String name, String conditionOnProperty, List<String> dependencies})
const

Properties

conditionOnProperty String
实例化条件:当存在指定的配置key
final
dependencies List<String>
依赖的类名
final
hashCode int
The hash code for this object.
read-onlyinherited
name String
别名
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited