程序包 cn.taketoday.core
@NonNullApi
@NonNullFields
package cn.taketoday.core
Provides core helpers that are not specific to any part of the framework.
-
类说明Common interface for managing aliases.
PathMatcherimplementation for Ant-style path patterns.Tests whether or not a string matches against a pattern via aPattern.The defaultComparatorimplementation returned byAntPathMatcher.getPatternComparator(String).Value class that holds information about the pattern, e.g. number of occurrences of "*", "**", and "{" pattern elements.A simple cache for patterns that depend on the configured path separator.Provides access to the application home directory.Provides access to an application specific temporary directory.Trims the capacity of this instance's (list or array) to its size.Interface defining a generic contract for attaching and accessing metadata to/from arbitrary objects.Support class forAttributeAccessors, providing a base implementation of all methods.Helper for resolving syntheticbridge Methodsto theMethodbeing bridged.ParameterNameDiscovererimplementation that tries several discoverer delegates in succession.SpecialObjectInputStreamsubclass that resolves class names against a specificClassLoader.This class can be used to parse other classes containing constant definitions in public static final members.Exception thrown when theConstantsclass is asked for an invalid constant name.not a suitable Constructor foundProvides methods to support various naming and other conventions used throughout the framework.Base class for decorating ClassLoaders such asOverridingClassLoaderproviding common handling of excluded packages and classes.Interface to be implemented by decorating proxies, in particular AOP proxies but potentially also custom proxies with decorator semantics.Decorator<T>A callback interface for a decorator to be applied to anyTSimple implementation of theAliasRegistryinterface.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.Helper class for resolving generic types against type variables.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.Known Java versions.Implementation ofParameterNameDiscovererthat uses the LocalVariableTable information in the method attributes to discover parameter names.Helper class that inspects all methods and constructors and then attempts to find the parameter names for the givenExecutable.MetadataResolver<M,C> Simple strategy interface for resolving a valueDefines 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.A callback interface for metadata lookup on a given method.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.MethodParametersubclass which detects field annotations as well.InheritableThreadLocalsubclass that exposes a specified name asNamedInheritableThreadLocal.toString()result (allowing for introspection).ThreadLocalsubclass that exposes a specified name asNamedThreadLocal.toString()result (allowing for introspection).A common delegate for detecting a GraalVM native image environment.Native image context as defined in GraalVM's ImageInfo.Handy class for wrapping checkedExceptionswith a root cause.Handy class for wrappingExceptionswith a root cause.Handy class for wrapping runtimeExceptionswith a root cause.Comparatorimplementation forOrderedobjects, sorting by order value ascending, respectively by priority descending.Orderedis an interface that can be implemented by objects that should be orderable, for example in aCollection.Strategy interface to provide an order source for a given object.ClassLoaderthat does not always delegate to the parent loader as normal class loaders do.Pair<A,B> Represents a generic pair of two values.The purpose of this class is to enable capturing and passing a genericType.abstract class to discover parameter names for methods and constructors.Adapter for a Reactive StreamsPublisherto and from an async/reactive type such asCompletableFuture, RxJavaObservable, and others.A registry of adapters to adapt Reactive StreamsPublisherto/from various async/reactive types such asCompletableFuture, RxJavaFlowable, etc.BlockHoundIntegrationfor core classes.ReactiveAdapter variant that wraps adapted Publishers asFluxorMonodepending onReactiveTypeDescriptor.isMultiValue().A common delegate for detecting Reactive presence AND its featuresDescribes the semantics of a reactive type including boolean checks forReactiveTypeDescriptor.isMultiValue(),ReactiveTypeDescriptor.isNoValue(), andReactiveTypeDescriptor.supportsEmpty().ParameterNameDiscovererimplementation which uses JDK 8's reflection facilities for introspecting parameter names (based on the "-parameters" compiler flag).Encapsulates a JavaType, providing access tosupertypes,interfaces, andgeneric parametersalong with the ability to ultimatelyresolveto aClass.InternalTypeused to represent an empty value.Strategy interface used to resolveTypeVariables.Internal helper to handle bounds fromWildcardTypes.The various kinds of bounds.Any object can implement this interface to provide its actualResolvableType.Internal utility class that can be used to obtain wrappedSerializablevariants ofjava.lang.reflect.Types.SerializableTypeWrapper.TypeProviderforTypesobtained by invoking a no-arg method.Additional interface implemented by the type proxy.ASerializableinterface providing access to aType.Interface to be implemented by a reloading-aware ClassLoader.Simple strategy interface for resolving a String value.ThrowableSupplier<T,E extends Throwable> A throwable supplier is a functional interface which consists on a single get function which is able to throw an exception.Triple<A,B, C> Represents a triad of values There is no meaning attached to values in this class, it can be used for any purpose.Contextual descriptor about a type to convert from or to.Adapter class for exposing aTypeDescriptor's annotations as anAnnotatedElement, in particular toAnnotatedElementUtils.Base class for YAML factories.Strategy interface used to test if properties match.Callback interface used to process the YAML parsing results.Status returned fromYamlProcessor.DocumentMatcher.matches(java.util.Properties).Method to use for resolving resources.