程序包 org.springframework.core
Provides basic classes for exception handling and version detection, and other core helpers that are not specific to any part of the framework.
接口概要 接口 说明 AliasRegistry Common interface for managing aliases.AttributeAccessor Interface defining a generic contract for attaching and accessing metadata to/from arbitrary objects.DecoratingProxy Interface to be implemented by decorating proxies, in particular Spring AOP proxies but potentially also custom proxies with decorator semantics.InfrastructureProxy Interface to be implemented by transparent resource proxies that need to be considered as equal to the underlying resource, for example for consistent lookup key comparisons.MethodIntrospector.MetadataLookup<T> A callback interface for metadata lookup on a given method.OrderComparator.OrderSourceProvider Strategy interface to provide an order source for a given object.Ordered Orderedis an interface that can be implemented by objects that should be orderable, for example in aCollection.ParameterNameDiscoverer Interface to discover parameter names for methods and constructors.PriorityOrdered ResolvableTypeProvider Any object can implement this interface to provide its actualResolvableType.SmartClassLoader Interface to be implemented by a reloading-aware ClassLoader (e.g. a Groovy-based ClassLoader).类概要 类 说明 AttributeAccessorSupport Support class forAttributeAccessors, providing a base implementation of all methods.BridgeMethodResolver Helper for resolving syntheticbridge Methodsto theMethodbeing bridged.CollectionFactory Factory for collections that is aware of common Java and Spring collection types.ConfigurableObjectInputStream Special ObjectInputStream subclass that resolves class names against a specific ClassLoader.Constants This class can be used to parse other classes containing constant definitions in public static final members.Conventions Provides methods to support various naming and other conventions used throughout the framework.DecoratingClassLoader Base class for decorating ClassLoaders such asOverridingClassLoaderandShadowingClassLoader, providing common handling of excluded packages and classes.DefaultParameterNameDiscoverer Default implementation of theParameterNameDiscovererstrategy interface, using the Java 8 standard reflection mechanism (if available), and falling back to the ASM-basedLocalVariableTableParameterNameDiscovererfor checking debug information in the class file.ExceptionDepthComparator Comparator capable of sorting exceptions based on their depth from the thrown exception type.GenericTypeResolver Helper class for resolving generic types against type variables.KotlinDetector A common delegate for detecting Kotlin's presence and for identifying Kotlin types.KotlinReflectionParameterNameDiscoverer ParameterNameDiscovererimplementation which uses Kotlin's reflection facilities for introspecting parameter names.LocalVariableTableParameterNameDiscoverer Implementation ofParameterNameDiscovererthat uses the LocalVariableTable information in the method attributes to discover parameter names.MethodClassKey A common key class for a method against a specific target class, includingMethodClassKey.toString()representation andComparablesupport (as suggested for customHashMapkeys as of Java 8).MethodIntrospector Defines the algorithm for searching for metadata-associated methods exhaustively including interfaces and parent classes while also dealing with parameterized methods as well as common scenarios encountered with interface and class-based proxies.MethodParameter Helper class that encapsulates the specification of a method parameter, i.e. aMethodorConstructorplus a parameter index and a nested type index for a declared generic type.NamedInheritableThreadLocal<T> InheritableThreadLocalsubclass that exposes a specified name asNamedInheritableThreadLocal.toString()result (allowing for introspection).NamedThreadLocal<T> ThreadLocalsubclass that exposes a specified name asNamedThreadLocal.toString()result (allowing for introspection).NestedExceptionUtils Helper class for implementing exception classes which are capable of holding nested exceptions.OrderComparator Comparatorimplementation forOrderedobjects, sorting by order value ascending, respectively by priority descending.OverridingClassLoader ClassLoaderthat does not always delegate to the parent loader as normal class loaders do.ParameterizedTypeReference<T> The purpose of this class is to enable capturing and passing a genericType.PrioritizedParameterNameDiscoverer ParameterNameDiscovererimplementation that tries several discoverer delegates in succession.ReactiveAdapter Adapter for a Reactive StreamsPublisherto and from an async/reactive type such asCompletableFuture, RxJavaObservable, and others.ReactiveAdapterRegistry A registry of adapters to adapt Reactive StreamsPublisherto/from various async/reactive types such asCompletableFuture, RxJavaObservable, and others.ReactiveAdapterRegistry.SpringCoreBlockHoundIntegration BlockHoundIntegrationfor spring-core classes.ReactiveTypeDescriptor Describes the semantics of a reactive type including boolean checks forReactiveTypeDescriptor.isMultiValue(),ReactiveTypeDescriptor.isNoValue(), andReactiveTypeDescriptor.supportsEmpty().ResolvableType Encapsulates a JavaType, providing access tosupertypes,interfaces, andgeneric parametersalong with the ability to ultimatelyresolveto aClass.SimpleAliasRegistry Simple implementation of theAliasRegistryinterface.SpringProperties Static holder for local Spring properties, i.e. defined at the Spring library level.SpringVersion Class that exposes the Spring version.StandardReflectionParameterNameDiscoverer ParameterNameDiscovererimplementation which uses JDK 8's reflection facilities for introspecting parameter names (based on the "-parameters" compiler flag).异常错误概要 异常错误 说明 Constants.ConstantException Exception thrown when theConstantsclass is asked for an invalid constant name.NestedCheckedException Handy class for wrapping checkedExceptionswith a root cause.NestedIOException Subclass ofIOExceptionthat properly handles a root cause, exposing the root cause just like NestedChecked/RuntimeException does.NestedRuntimeException Handy class for wrapping runtimeExceptionswith a root cause.