Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addBeanResolver(BeanResolver) - Method in interface cool.scx.bean.BeanFactory
-
添加一个 Bean 依赖解析器
- addBeanResolver(BeanResolver) - Method in class cool.scx.bean.BeanFactoryImpl
- ALL_PROTOTYPE - Enum constant in enum class cool.scx.bean.dependency.CircularDependencyChecker.UnsolvableCycleType
- AnnotationConfigBeanProvider - Class in cool.scx.bean.provider
-
注解配置的 BeanProvider, 根据 class 进行反射
- AnnotationConfigBeanProvider(Class<?>) - Constructor for class cool.scx.bean.provider.AnnotationConfigBeanProvider
- Autowired - Annotation Interface in cool.scx.bean.annotation
-
Autowired
- AutowiredAnnotationResolver - Class in cool.scx.bean.resolver
-
处理 Autowired 注解 同时也承担最核心的 配置
- AutowiredAnnotationResolver(BeanFactory) - Constructor for class cool.scx.bean.resolver.AutowiredAnnotationResolver
B
- bean() - Method in record class cool.scx.bean.provider.InstanceBeanProvider
-
Returns the value of the
beanrecord component. - beanClass() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
beanClassrecord component. - beanClass() - Method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
- beanClass() - Method in interface cool.scx.bean.provider.BeanProvider
-
表示 getBean() 返回的对象类型
- beanClass() - Method in class cool.scx.bean.provider.InjectingBeanProvider
- beanClass() - Method in record class cool.scx.bean.provider.InstanceBeanProvider
- beanClass() - Method in class cool.scx.bean.provider.SingletonBeanProvider
- BeanCreationException - Exception Class in cool.scx.bean.exception
-
Bean 创建异常
- BeanCreationException(String) - Constructor for exception class cool.scx.bean.exception.BeanCreationException
- BeanCreationException(String, Throwable) - Constructor for exception class cool.scx.bean.exception.BeanCreationException
- BeanFactory - Interface in cool.scx.bean
-
BeanFactory
- BeanFactoryImpl - Class in cool.scx.bean
-
BeanFactory 默认实现
- BeanFactoryImpl() - Constructor for class cool.scx.bean.BeanFactoryImpl
- BeanProvider - Interface in cool.scx.bean.provider
-
Bean 提供器
- BeanResolver - Interface in cool.scx.bean.resolver
-
提供配置一个 bean 所需的依赖
- beanResolvers() - Method in interface cool.scx.bean.BeanFactory
-
获取所有 Bean 依赖解析器
- beanResolvers() - Method in class cool.scx.bean.BeanFactoryImpl
C
- checkClass(Class<?>) - Static method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
- CircularDependencyChecker - Class in cool.scx.bean.dependency
-
循环依赖检测器, 负责检测并处理循环依赖链条。
- CircularDependencyChecker() - Constructor for class cool.scx.bean.dependency.CircularDependencyChecker
- CircularDependencyChecker.UnsolvableCycleType - Enum Class in cool.scx.bean.dependency
- constructor() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
constructorrecord component. - CONSTRUCTOR - Enum constant in enum class cool.scx.bean.dependency.CircularDependencyChecker.UnsolvableCycleType
- CONSTRUCTOR - Enum constant in enum class cool.scx.bean.dependency.DependencyContext.Type
- cool.scx.bean - package cool.scx.bean
- cool.scx.bean.annotation - package cool.scx.bean.annotation
- cool.scx.bean.dependency - package cool.scx.bean.dependency
- cool.scx.bean.exception - package cool.scx.bean.exception
- cool.scx.bean.provider - package cool.scx.bean.provider
- cool.scx.bean.resolver - package cool.scx.bean.resolver
D
- DependencyContext - Record Class in cool.scx.bean.dependency
-
依赖上下文
- DependencyContext(DependencyContext.Type, Class<?>, boolean, FieldInfo, ConstructorInfo, ParameterInfo) - Constructor for record class cool.scx.bean.dependency.DependencyContext
-
Creates an instance of a
DependencyContextrecord class. - DependencyContext(Class<?>, boolean, ConstructorInfo, ParameterInfo) - Constructor for record class cool.scx.bean.dependency.DependencyContext
- DependencyContext(Class<?>, boolean, FieldInfo) - Constructor for record class cool.scx.bean.dependency.DependencyContext
- DependencyContext.Type - Enum Class in cool.scx.bean.dependency
- DuplicateBeanNameException - Exception Class in cool.scx.bean.exception
-
重复的 Bean 名称
- DuplicateBeanNameException(String) - Constructor for exception class cool.scx.bean.exception.DuplicateBeanNameException
E
- endDependencyCheck() - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
- equals(Object) - Method in record class cool.scx.bean.dependency.DependencyContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cool.scx.bean.provider.InstanceBeanProvider
-
Indicates whether some other object is "equal to" this one.
- extractCircularDependencyChain(List<DependencyContext>, Class<?>) - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
F
- FIELD - Enum constant in enum class cool.scx.bean.dependency.DependencyContext.Type
- fieldInfo() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
fieldInforecord component. - findCycleStartIndex(List<DependencyContext>, Class<?>) - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
- findPreferredConstructor(Class<?>) - Static method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
-
查找构造函数
G
- getBean(BeanFactory) - Method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
- getBean(BeanFactory) - Method in interface cool.scx.bean.provider.BeanProvider
-
获取 Bean
- getBean(BeanFactory) - Method in class cool.scx.bean.provider.InjectingBeanProvider
- getBean(BeanFactory) - Method in record class cool.scx.bean.provider.InstanceBeanProvider
- getBean(BeanFactory) - Method in class cool.scx.bean.provider.SingletonBeanProvider
- getBean(Class<T>) - Method in interface cool.scx.bean.BeanFactory
-
根据 类型 获取 Bean
- getBean(Class<T>) - Method in class cool.scx.bean.BeanFactoryImpl
- getBean(String) - Method in interface cool.scx.bean.BeanFactory
-
根据 名称 获取 Bean
- getBean(String) - Method in class cool.scx.bean.BeanFactoryImpl
- getBean(String, Class<T>) - Method in interface cool.scx.bean.BeanFactory
-
根据 名称和类型 获取 Bean
- getBean(String, Class<T>) - Method in class cool.scx.bean.BeanFactoryImpl
- getBeanNames() - Method in interface cool.scx.bean.BeanFactory
-
获取所有 Bean 的名字
- getBeanNames() - Method in class cool.scx.bean.BeanFactoryImpl
- getCurrentDependencyChain() - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
-
获取依赖链条
H
- hashCode() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class cool.scx.bean.provider.InstanceBeanProvider
-
Returns a hash code value for this object.
I
- IllegalBeanClassException - Exception Class in cool.scx.bean.exception
-
非法的 bean 类型 比如说 接口
- IllegalBeanClassException(String) - Constructor for exception class cool.scx.bean.exception.IllegalBeanClassException
- initializeBeans() - Method in interface cool.scx.bean.BeanFactory
-
初始化所有 Bean
- initializeBeans() - Method in class cool.scx.bean.BeanFactoryImpl
- INJECTING - Enum constant in enum class cool.scx.bean.provider.InjectingBeanProvider.BeanStatus
- InjectingBeanProvider - Class in cool.scx.bean.provider
-
支持字段和方法注入 的 提供器
- InjectingBeanProvider(BeanProvider) - Constructor for class cool.scx.bean.provider.InjectingBeanProvider
- InjectingBeanProvider.BeanStatus - Enum Class in cool.scx.bean.provider
- InstanceBeanProvider - Record Class in cool.scx.bean.provider
-
根据一个 已经存在的 Bean 创建
- InstanceBeanProvider(Object) - Constructor for record class cool.scx.bean.provider.InstanceBeanProvider
-
Creates an instance of a
InstanceBeanProviderrecord class. - isUnsolvableCycle(List<DependencyContext>) - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
-
是否是无法解决的循环
M
- MissingValueException - Exception Class in cool.scx.bean.exception
-
需要注入的 value 不存在
- MissingValueException(String) - Constructor for exception class cool.scx.bean.exception.MissingValueException
N
- NoSuchBeanException - Exception Class in cool.scx.bean.exception
-
未找到 对应的 Bean
- NoSuchBeanException(String) - Constructor for exception class cool.scx.bean.exception.NoSuchBeanException
- NoSuchConstructorException - Exception Class in cool.scx.bean.exception
-
没找到任何构造参数异常
- NoSuchConstructorException(String) - Constructor for exception class cool.scx.bean.exception.NoSuchConstructorException
- NoUniqueBeanException - Exception Class in cool.scx.bean.exception
-
不是唯一符合条件的 Bean
- NoUniqueBeanException(String) - Constructor for exception class cool.scx.bean.exception.NoUniqueBeanException
- NoUniqueConstructorException - Exception Class in cool.scx.bean.exception
-
找到多个构造函数异常
- NoUniqueConstructorException(String) - Constructor for exception class cool.scx.bean.exception.NoUniqueConstructorException
- NULL - Enum constant in enum class cool.scx.bean.provider.InjectingBeanProvider.BeanStatus
P
- parameter() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
parameterrecord component. - PreferredConstructor - Annotation Interface in cool.scx.bean.annotation
-
标识注册时优先构造函数
R
- READY - Enum constant in enum class cool.scx.bean.provider.InjectingBeanProvider.BeanStatus
- registerBean(String, Object) - Method in interface cool.scx.bean.BeanFactory
-
注册一个单例的 Bean, 不注入字段
- registerBean(String, Object, boolean) - Method in interface cool.scx.bean.BeanFactory
-
注册一个单例的 Bean
- registerBean(String, Object, boolean) - Method in class cool.scx.bean.BeanFactoryImpl
- registerBeanClass(String, Class<?>) - Method in interface cool.scx.bean.BeanFactory
-
根据 Class 注册一个 Bean, 单例模式
- registerBeanClass(String, Class<?>, boolean) - Method in interface cool.scx.bean.BeanFactory
-
根据 Class 注册一个 Bean
- registerBeanClass(String, Class<?>, boolean) - Method in class cool.scx.bean.BeanFactoryImpl
- registerBeanProvider(String, BeanProvider) - Method in interface cool.scx.bean.BeanFactory
-
注册一个 Bean 提供器
- registerBeanProvider(String, BeanProvider) - Method in class cool.scx.bean.BeanFactoryImpl
- resolveConstructorArgument(BeanFactory, ParameterInfo) - Static method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
-
解析构造函数参数
- resolveConstructorArgument(ParameterInfo) - Method in class cool.scx.bean.resolver.AutowiredAnnotationResolver
- resolveConstructorArgument(ParameterInfo) - Method in interface cool.scx.bean.resolver.BeanResolver
-
提供 构造函数 参数 无法处理返回 null
- resolveConstructorArgument(ParameterInfo) - Method in class cool.scx.bean.resolver.ValueAnnotationResolver
- resolveFieldValue(BeanFactory, FieldInfo) - Static method in class cool.scx.bean.provider.InjectingBeanProvider
-
解析构造函数参数
- resolveFieldValue(FieldInfo) - Method in class cool.scx.bean.resolver.AutowiredAnnotationResolver
- resolveFieldValue(FieldInfo) - Method in interface cool.scx.bean.resolver.BeanResolver
-
提供 字段 无法处理返回 null
- resolveFieldValue(FieldInfo) - Method in class cool.scx.bean.resolver.ValueAnnotationResolver
- resolveValue(AnnotatedElementInfo, JavaType) - Method in class cool.scx.bean.resolver.ValueAnnotationResolver
- resolveValue(AnnotatedElementInfo, Class<?>) - Method in class cool.scx.bean.resolver.AutowiredAnnotationResolver
S
- singleton() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
singletonrecord component. - singleton() - Method in class cool.scx.bean.provider.AnnotationConfigBeanProvider
- singleton() - Method in interface cool.scx.bean.provider.BeanProvider
-
表示 getBean() 是否始终返回同一实例
- singleton() - Method in class cool.scx.bean.provider.InjectingBeanProvider
- singleton() - Method in record class cool.scx.bean.provider.InstanceBeanProvider
- singleton() - Method in class cool.scx.bean.provider.SingletonBeanProvider
- SingletonBeanProvider - Class in cool.scx.bean.provider
-
单例的 Bean 提供器
- SingletonBeanProvider(BeanProvider) - Constructor for class cool.scx.bean.provider.SingletonBeanProvider
- startDependencyCheck(DependencyContext) - Static method in class cool.scx.bean.dependency.CircularDependencyChecker
T
- toString() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns a string representation of this record class.
- toString() - Method in record class cool.scx.bean.provider.InstanceBeanProvider
-
Returns a string representation of this record class.
- type() - Method in record class cool.scx.bean.dependency.DependencyContext
-
Returns the value of the
typerecord component.
V
- value() - Element in annotation interface cool.scx.bean.annotation.Autowired
-
名字
- value() - Element in annotation interface cool.scx.bean.annotation.Value
- Value - Annotation Interface in cool.scx.bean.annotation
-
Value 注入
- ValueAnnotationResolver - Class in cool.scx.bean.resolver
-
处理 Value 注解
- ValueAnnotationResolver(Map<String, Object>) - Constructor for class cool.scx.bean.resolver.ValueAnnotationResolver
- valueOf(String) - Static method in enum class cool.scx.bean.dependency.CircularDependencyChecker.UnsolvableCycleType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cool.scx.bean.dependency.DependencyContext.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cool.scx.bean.provider.InjectingBeanProvider.BeanStatus
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cool.scx.bean.dependency.CircularDependencyChecker.UnsolvableCycleType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cool.scx.bean.dependency.DependencyContext.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cool.scx.bean.provider.InjectingBeanProvider.BeanStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form