code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
package cn.bugstack.springframework.beans.factory.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.DisposableBean;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import cn.hutool.core.util.StrUtil;
import java.lang.reflect.Meth... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/beans/factory/support/DisposableBeanAdapter.java | Java | apache-2.0 | 1,940 |
package cn.bugstack.springframework.beans.factory.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.FactoryBean;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Support base class for singleton registries which need to handl... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/beans/factory/support/FactoryBeanRegistrySupport.java | Java | apache-2.0 | 2,141 |
package cn.bugstack.springframework.beans.factory.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import java.lang.reflect.Constructor;
/**
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/beans/factory/support/InstantiationStrategy.java | Java | apache-2.0 | 710 |
package cn.bugstack.springframework.beans.factory.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
/**
* 博客:https://bugstack.cn - 沉淀、分享、成... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/beans/factory/support/SimpleInstantiationStrategy.java | Java | apache-2.0 | 1,318 |
package cn.bugstack.springframework.beans.factory.xml;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.PropertyValue;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import cn.bugstack.springframework.beans.factory.config.BeanReference;
import c... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/beans/factory/xml/XmlBeanDefinitionReader.java | Java | apache-2.0 | 5,964 |
package cn.bugstack.springframework.context;
import cn.bugstack.springframework.beans.factory.HierarchicalBeanFactory;
import cn.bugstack.springframework.beans.factory.ListableBeanFactory;
import cn.bugstack.springframework.core.io.ResourceLoader;
/**
* Central interface to provide configuration for an application.
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ApplicationContext.java | Java | apache-2.0 | 878 |
package cn.bugstack.springframework.context;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.Aware;
/**
* Interface to be implemented by any object that wishes to be notified
* of the {@link ApplicationContext} that it runs in.
*
* 实现此接口,既能感知到所属的 Applicati... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ApplicationContextAware.java | Java | apache-2.0 | 793 |
package cn.bugstack.springframework.context;
import java.util.EventObject;
/**
* Class to be extended by all application events. Abstract as it
* doesn't make sense for generic events to be published directly.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ApplicationEvent.java | Java | apache-2.0 | 823 |
package cn.bugstack.springframework.context;
/**
* Interface that encapsulates event publication functionality.
* Serves as super-interface for ApplicationContext.
*
* 事件发布者接口
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https:... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ApplicationEventPublisher.java | Java | apache-2.0 | 818 |
package cn.bugstack.springframework.context;
import java.util.EventListener;
/**
* Interface to be implemented by application event listeners.
* Based on the standard <code>java.util.EventListener</code> interface
* for the Observer design pattern.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugst... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ApplicationListener.java | Java | apache-2.0 | 758 |
package cn.bugstack.springframework.context;
import cn.bugstack.springframework.beans.BeansException;
/**
* SPI interface to be implemented by most if not all application contexts.
* Provides facilities to configure an application context in addition
* to the application context client methods in the
* {@link cn.... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/ConfigurableApplicationContext.java | Java | apache-2.0 | 910 |
package cn.bugstack.springframework.context.annotation;
import cn.bugstack.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import cn.bugstack.springframework.beans.factory.support.BeanDefinitionRegistry;
import cn.bu... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/annotation/ClassPathBeanDefinitionScanner.java | Java | apache-2.0 | 2,745 |
package cn.bugstack.springframework.context.annotation;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;
import cn.bugstack.springframework.stereotype.Component;
import cn.hutool.core.util.ClassUtil;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* A component provider that scans t... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/annotation/ClassPathScanningCandidateComponentProvider.java | Java | apache-2.0 | 1,167 |
package cn.bugstack.springframework.context.annotation;
import java.lang.annotation.*;
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Scope {
String value() default "singleton";
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/annotation/Scope.java | Java | apache-2.0 | 255 |
package cn.bugstack.springframework.context.event;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.BeanFactory;
import cn.bugstack.springframework.beans.factory.BeanFactoryAware;
import cn.bugstack.springframework.context.ApplicationEvent;
import cn.bugstack.sp... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/AbstractApplicationEventMulticaster.java | Java | apache-2.0 | 4,090 |
package cn.bugstack.springframework.context.event;
import cn.bugstack.springframework.context.ApplicationContext;
import cn.bugstack.springframework.context.ApplicationEvent;
/**
* Base class for events raised for an <code>ApplicationContext</code>.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugsta... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/ApplicationContextEvent.java | Java | apache-2.0 | 1,084 |
package cn.bugstack.springframework.context.event;
import cn.bugstack.springframework.context.ApplicationEvent;
import cn.bugstack.springframework.context.ApplicationListener;
/**
* Interface to be implemented by objects that can manage a number of
* {@link ApplicationListener} objects, and publish events to them.
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/ApplicationEventMulticaster.java | Java | apache-2.0 | 1,212 |
package cn.bugstack.springframework.context.event;
/**
* Event raised when an <code>ApplicationContext</code> gets closed.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https://github.com/DerekYRC/mini-spring
*/
public class Conte... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/ContextClosedEvent.java | Java | apache-2.0 | 740 |
package cn.bugstack.springframework.context.event;
/**
* Event raised when an <code>ApplicationContext</code> gets initialized or refreshed.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https://github.com/DerekYRC/mini-spring
*/
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/ContextRefreshedEvent.java | Java | apache-2.0 | 763 |
package cn.bugstack.springframework.context.event;
import cn.bugstack.springframework.beans.factory.BeanFactory;
import cn.bugstack.springframework.context.ApplicationEvent;
import cn.bugstack.springframework.context.ApplicationListener;
/**
* Simple implementation of the {@link ApplicationEventMulticaster} interfac... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/event/SimpleApplicationEventMulticaster.java | Java | apache-2.0 | 1,077 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.ConfigurableListableBeanFactory;
import cn.bugstack.springframework.beans.factory.config.BeanFactoryPostProcessor;
import cn.bugstack.springframework.beans.fact... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/AbstractApplicationContext.java | Java | apache-2.0 | 6,979 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.ConfigurableListableBeanFactory;
import cn.bugstack.springframework.beans.factory.support.DefaultListableBeanFactory;
/**
* Base class for {@link cn.bugstack.... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/AbstractRefreshableApplicationContext.java | Java | apache-2.0 | 1,629 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.factory.support.DefaultListableBeanFactory;
import cn.bugstack.springframework.beans.factory.xml.XmlBeanDefinitionReader;
/**
* Convenient base class for {@link cn.bugstack.springframework.context.ApplicationContext}
* imp... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/AbstractXmlApplicationContext.java | Java | apache-2.0 | 1,318 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.config.BeanPostProcessor;
import cn.bugstack.springframework.context.ApplicationContext;
import cn.bugstack.springframework.context.ApplicationContextAware;
/*... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/ApplicationContextAwareProcessor.java | Java | apache-2.0 | 1,323 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.BeansException;
/**
* Standalone XML application context, taking the context definition files
* from the class path, interpreting plain paths as class path resource names
* that include the package path (e.g. "mypackage/m... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/ClassPathXmlApplicationContext.java | Java | apache-2.0 | 1,608 |
package cn.bugstack.springframework.context.support;
import cn.bugstack.springframework.beans.factory.FactoryBean;
import cn.bugstack.springframework.beans.factory.InitializingBean;
import cn.bugstack.springframework.core.convert.ConversionService;
import cn.bugstack.springframework.core.convert.converter.Converter;
i... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/context/support/ConversionServiceFactoryBean.java | Java | apache-2.0 | 3,012 |
package cn.bugstack.springframework.core;
import cn.bugstack.springframework.util.ClassUtils;
import cn.bugstack.springframework.util.ReflectionUtils;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author zhangdd o... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/BridgeMethodResolver.java | Java | apache-2.0 | 7,388 |
package cn.bugstack.springframework.core;
/**
* @author zhangdd on 2022/2/27
*/
public abstract class GraalDetector {
// See https://github.com/oracle/graal/blob/master/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/ImageInfo.java
private static final boolean imageCode = (System.getProperty("or... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/GraalDetector.java | Java | apache-2.0 | 535 |
package cn.bugstack.springframework.core;
import cn.bugstack.springframework.core.util.ObjectUtils;
import java.lang.reflect.Method;
/**
* @author zhangdd on 2022/2/26
*/
public final class MethodClassKey implements Comparable<MethodClassKey>{
private final Method method;
private final Class<?> targetC... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/MethodClassKey.java | Java | apache-2.0 | 1,660 |
package cn.bugstack.springframework.core;
import cn.bugstack.springframework.util.ClassUtils;
import cn.hutool.core.lang.Assert;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.Map;
/**
* @author zhangdd on 2... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/MethodParameter.java | Java | apache-2.0 | 4,483 |
package cn.bugstack.springframework.core;
import cn.bugstack.springframework.core.util.ConcurrentReferenceHashMap;
import cn.bugstack.springframework.core.util.ObjectUtils;
import cn.bugstack.springframework.core.util.StringUtils;
import cn.bugstack.springframework.util.ClassUtils;
import cn.hutool.core.lang.Assert;
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/ResolvableType.java | Java | apache-2.0 | 63,624 |
package cn.bugstack.springframework.core;
import cn.bugstack.springframework.core.util.ObjectUtils;
import cn.bugstack.springframework.util.ReflectionUtils;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.lang.reflect.*;
import java.util.concurrent.ConcurrentHa... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/SerializableTypeWrapper.java | Java | apache-2.0 | 8,735 |
package cn.bugstack.springframework.core.annotation;
import cn.bugstack.springframework.core.util.ObjectUtils;
import cn.hutool.core.lang.Assert;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
/**
* @author zhangdd on 2022/2/27
*/
abstract clas... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AbstractAliasAwareAnnotationAttributeExtractor.java | Java | apache-2.0 | 4,185 |
package cn.bugstack.springframework.core.annotation;
import java.lang.annotation.*;
/**
* @author zhangdd on 2022/2/27
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AliasFor {
/**
* Alias for {@link #attribute}.
* <p>Intended to be used instead of {@link #attri... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AliasFor.java | Java | apache-2.0 | 1,040 |
package cn.bugstack.springframework.core.annotation;
import cn.bugstack.springframework.core.BridgeMethodResolver;
import cn.hutool.core.collection.CollUtil;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
import java.util.*;
/**
* @author zhangdd ... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AnnotatedElementUtils.java | Java | apache-2.0 | 18,371 |
package cn.bugstack.springframework.core.annotation;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
/**
* @author zhangdd on 2022/2/27
*/
public interface AnnotationAttributeExtractor<S> {
/**
* Get the type of annotation that this extractor extracts attribute
* values for.
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AnnotationAttributeExtractor.java | Java | apache-2.0 | 1,088 |
package cn.bugstack.springframework.core.annotation;
import cn.hutool.core.lang.Assert;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
import java.util.LinkedHashMap;
/**
* @author zhangdd on 2022/2/26
*/
public class AnnotationAttributes extends LinkedHashMap<String, Object> {
privat... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AnnotationAttributes.java | Java | apache-2.0 | 1,395 |
package cn.bugstack.springframework.core.annotation;
/**
* @author zhangdd on 2022/2/27
*/
public class AnnotationConfigurationException extends RuntimeException{
public AnnotationConfigurationException(String message) {
super(message);
}
public AnnotationConfigurationException(String message, T... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AnnotationConfigurationException.java | Java | apache-2.0 | 377 |
package cn.bugstack.springframework.core.annotation;
import cn.bugstack.springframework.core.ResolvableType;
import cn.bugstack.springframework.core.util.ConcurrentReferenceHashMap;
import cn.bugstack.springframework.core.util.ObjectUtils;
import cn.bugstack.springframework.core.util.StringUtils;
import cn.bugstack.sp... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/AnnotationUtils.java | Java | apache-2.0 | 62,026 |
package cn.bugstack.springframework.core.annotation;
import cn.bugstack.springframework.util.ReflectionUtils;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
/**
* @author zhangdd on 2022/2/27
*/
class DefaultAnnotationAttributeExtractor extends AbstractAliasAwareAnnotationAttributeExtrac... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/DefaultAnnotationAttributeExtractor.java | Java | apache-2.0 | 1,304 |
package cn.bugstack.springframework.core.annotation;
/**
* @author zhangdd on 2022/2/27
*/
public @interface SynthesizedAnnotation {
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/SynthesizedAnnotation.java | Java | apache-2.0 | 138 |
package cn.bugstack.springframework.core.annotation;
import cn.bugstack.springframework.core.util.ObjectUtils;
import cn.bugstack.springframework.core.util.StringUtils;
import cn.bugstack.springframework.util.ReflectionUtils;
import cn.hutool.core.lang.Assert;
import java.lang.annotation.Annotation;
import java.lang.... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/annotation/SynthesizedAnnotationInvocationHandler.java | Java | apache-2.0 | 7,911 |
package cn.bugstack.springframework.core.convert;
import org.jetbrains.annotations.Nullable;
/**
* A service interface for type conversion. This is the entry point into the convert system.
* Call {@link #convert(Object, Class)} to perform a thread-safe type conversion using this system.
*
* 类型转换抽象接口
*
* 博客:htt... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/ConversionService.java | Java | apache-2.0 | 963 |
package cn.bugstack.springframework.core.convert.converter;
/**
* A converter converts a source object of type {@code S} to a target of type {@code T}.
*
* 类型转换处理接口
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https://github.com... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/converter/Converter.java | Java | apache-2.0 | 608 |
package cn.bugstack.springframework.core.convert.converter;
/**
* A factory for "ranged" converters that can convert objects from S to subtypes of R.
*
* 类型转换工厂
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https://github.com/Der... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/converter/ConverterFactory.java | Java | apache-2.0 | 807 |
package cn.bugstack.springframework.core.convert.converter;
/**
* For registering converters with a type conversion system.
*
* 类型转换注册接口
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*
* 来自于对开源项目的学习;
* 作者:DerekYRC https://github.com/DerekYRC/mini-spring
*/
pu... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/converter/ConverterRegistry.java | Java | apache-2.0 | 1,234 |
package cn.bugstack.springframework.core.convert.converter;
import cn.hutool.core.lang.Assert;
import java.util.Set;
/**
* Generic converter interface for converting between two or more types.
* <p>
* 通用的转换接口
* <p>
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都能有所收获!
* 公众号:bugstack虫洞栈
* Create by 小傅哥(fustack)
*... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/converter/GenericConverter.java | Java | apache-2.0 | 2,402 |
package cn.bugstack.springframework.core.convert.support;
import cn.bugstack.springframework.core.convert.converter.ConverterRegistry;
/**
* A specialization of {@link GenericConversionService} configured by default
* with converters appropriate for most environments.
*
* 博客:https://bugstack.cn - 沉淀、分享、成长,让自己和他人都... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/support/DefaultConversionService.java | Java | apache-2.0 | 925 |
package cn.bugstack.springframework.core.convert.support;
import cn.bugstack.springframework.core.convert.ConversionService;
import cn.bugstack.springframework.core.convert.converter.Converter;
import cn.bugstack.springframework.core.convert.converter.ConverterFactory;
import cn.bugstack.springframework.core.convert.c... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/support/GenericConversionService.java | Java | apache-2.0 | 5,815 |
package cn.bugstack.springframework.core.convert.support;
import cn.bugstack.springframework.core.convert.converter.Converter;
import cn.bugstack.springframework.core.convert.converter.ConverterFactory;
import cn.bugstack.springframework.util.NumberUtils;
import org.jetbrains.annotations.Nullable;
/**
* Converts fro... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/convert/support/StringToNumberConverterFactory.java | Java | apache-2.0 | 1,394 |
package cn.bugstack.springframework.core.io;
import cn.bugstack.springframework.util.ClassUtils;
import cn.hutool.core.lang.Assert;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
public class ClassPathResource implements Resource {
private final String path;
p... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/ClassPathResource.java | Java | apache-2.0 | 1,029 |
package cn.bugstack.springframework.core.io;
import cn.hutool.core.lang.Assert;
import java.net.MalformedURLException;
import java.net.URL;
public class DefaultResourceLoader implements ResourceLoader {
@Override
public Resource getResource(String location) {
Assert.notNull(location, "Location must ... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/DefaultResourceLoader.java | Java | apache-2.0 | 756 |
package cn.bugstack.springframework.core.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class FileSystemResource implements Resource {
private final File file;
private final String path;
public FileSystemResource(File file) {
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/FileSystemResource.java | Java | apache-2.0 | 699 |
package cn.bugstack.springframework.core.io;
import java.io.IOException;
import java.io.InputStream;
public interface Resource {
InputStream getInputStream() throws IOException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/Resource.java | Java | apache-2.0 | 188 |
package cn.bugstack.springframework.core.io;
public interface ResourceLoader {
/**
* Pseudo URL prefix for loading from the class path: "classpath:"
*/
String CLASSPATH_URL_PREFIX = "classpath:";
Resource getResource(String location);
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/ResourceLoader.java | Java | apache-2.0 | 263 |
package cn.bugstack.springframework.core.io;
import cn.hutool.core.lang.Assert;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
public class UrlResource implements Resource{
private final URL url;
public UrlResou... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/io/UrlResource.java | Java | apache-2.0 | 807 |
package cn.bugstack.springframework.core.util;
import cn.hutool.core.lang.Assert;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;
import java.lang.reflect.Array;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/util/ConcurrentReferenceHashMap.java | Java | apache-2.0 | 34,396 |
package cn.bugstack.springframework.core.util;
import java.util.Arrays;
/**
* @author zhangdd on 2022/2/26
*/
public class ObjectUtils {
private static final String EMPTY_STRING = "";
private static final String NULL_STRING = "null";
public static boolean isEmpty( Object[] array) {
return (ar... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/util/ObjectUtils.java | Java | apache-2.0 | 4,472 |
package cn.bugstack.springframework.core.util;
/**
* @author zhangdd on 2022/2/27
*/
public class StringUtils {
public static String arrayToDelimitedString( Object[] arr, String delim) {
if (ObjectUtils.isEmpty(arr)) {
return "";
}
if (arr.length == 1) {
return Ob... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/core/util/StringUtils.java | Java | apache-2.0 | 1,017 |
package cn.bugstack.springframework.jdbc;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/9
*/
public class CannotGetJdbcConnectionException extends RuntimeException {
public CannotGetJdbcConnectionException(String message) {
super(message);
}
public CannotGetJdbcConnectionExcept... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/CannotGetJdbcConnectionException.java | Java | apache-2.0 | 395 |
package cn.bugstack.springframework.jdbc;
/**
* @author zhangdd on 2022/2/10
*/
public class IncorrectResultSetColumnCountException extends RuntimeException {
private final int expectedCount;
private final int actualCount;
public IncorrectResultSetColumnCountException(int expectedCount, int actualCoun... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/IncorrectResultSetColumnCountException.java | Java | apache-2.0 | 513 |
package cn.bugstack.springframework.jdbc;
/**
* @author zhangdd on 2022/2/9
*/
public class UncategorizedSQLException extends RuntimeException{
public UncategorizedSQLException(String message) {
super(message);
}
public UncategorizedSQLException(String task,String sql, Throwable cause) {
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/UncategorizedSQLException.java | Java | apache-2.0 | 350 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/12
*/
public class ArgumentPreparedStatementSetter implements PreparedStatementSetter {
private final Object[] args;
public ArgumentPreparedStatementSetter(Object... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/ArgumentPreparedStatementSetter.java | Java | apache-2.0 | 607 |
package cn.bugstack.springframework.jdbc.core;
import cn.bugstack.springframework.jdbc.support.JdbcUtils;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 对sql的行数据 进行逐列获取放到map里
*
* @author zhangdd on 2022/2/10
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/ColumnMapRowMapper.java | Java | apache-2.0 | 1,347 |
package cn.bugstack.springframework.jdbc.core;
import java.util.List;
import java.util.Map;
/**
* @author zhangdd on 2022/2/9
*/
public interface JdbcOperations {
<T> T execute(StatementCallback<T> action);
void execute(String sql);
//------------------------------------------------------------------... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/JdbcOperations.java | Java | apache-2.0 | 2,022 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/12
*/
public interface PreparedStatementCallback<T> {
T doInPreparedStatement(PreparedStatement ps) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/PreparedStatementCallback.java | Java | apache-2.0 | 276 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/12
*/
public interface PreparedStatementCreator {
PreparedStatement createPreparedStatement(Connection con) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/PreparedStatementCreator.java | Java | apache-2.0 | 312 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/12
*/
public interface PreparedStatementSetter {
void setValues(PreparedStatement ps) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/PreparedStatementSetter.java | Java | apache-2.0 | 262 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* @author zhangdd on 2022/2/10
*/
public interface ResultSetExtractor<T> {
T extractData(ResultSet rs) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/ResultSetExtractor.java | Java | apache-2.0 | 243 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* sql行转换
*
* @author zhangdd on 2022/2/10
*/
public interface RowMapper<T> {
T mapRow(ResultSet rs, int rowNum) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/RowMapper.java | Java | apache-2.0 | 261 |
package cn.bugstack.springframework.jdbc.core;
import cn.hutool.core.lang.Assert;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* 将查询结果的ResultSet逐行的进行转换提取,转换成map,放到list里
*
* @author zhangdd on 2022/2/10
*/
public class RowMapperResultSetExtractor<... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/RowMapperResultSetExtractor.java | Java | apache-2.0 | 1,163 |
package cn.bugstack.springframework.jdbc.core;
import cn.bugstack.springframework.jdbc.IncorrectResultSetColumnCountException;
import cn.bugstack.springframework.jdbc.support.JdbcUtils;
import cn.bugstack.springframework.util.NumberUtils;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/SingleColumnRowMapper.java | Java | apache-2.0 | 3,040 |
package cn.bugstack.springframework.jdbc.core;
/**
* @author zhangdd on 2022/2/9
*/
public interface SqlProvider {
String getSql();
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/SqlProvider.java | Java | apache-2.0 | 142 |
package cn.bugstack.springframework.jdbc.core;
import java.sql.SQLException;
import java.sql.Statement;
/**
* @author zhangdd on 2022/2/9
*/
public interface StatementCallback<T> {
T doInStatement(Statement statement) throws SQLException;
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/core/StatementCallback.java | Java | apache-2.0 | 250 |
package cn.bugstack.springframework.jdbc.datasource;
import java.sql.Connection;
/**
* @author zhangdd on 2022/2/9
*/
public interface ConnectionHandler {
Connection getConnection();
default void releaseConnection(Connection con) {
}
}
| 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/ConnectionHandler.java | Java | apache-2.0 | 256 |
package cn.bugstack.springframework.jdbc.datasource;
import cn.hutool.core.lang.Assert;
import java.sql.Connection;
/**
* @author zhangdd on 2022/2/9
*/
public class ConnectionHolder {
private ConnectionHandler connectionHandler;
private Connection currentConnection;
public ConnectionHolder(Connec... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/ConnectionHolder.java | Java | apache-2.0 | 1,535 |
package cn.bugstack.springframework.jdbc.datasource;
import cn.bugstack.springframework.beans.factory.InitializingBean;
import cn.bugstack.springframework.tx.transaction.CannotCreateTransactionException;
import cn.bugstack.springframework.tx.transaction.TransactionDefinition;
import cn.bugstack.springframework.tx.tran... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/DataSourceTransactionManager.java | Java | apache-2.0 | 4,847 |
package cn.bugstack.springframework.jdbc.datasource;
import cn.bugstack.springframework.jdbc.CannotGetJdbcConnectionException;
import cn.bugstack.springframework.tx.transaction.support.TransactionSynchronizationManager;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
/**
* @a... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/DataSourceUtils.java | Java | apache-2.0 | 2,090 |
package cn.bugstack.springframework.jdbc.datasource;
/**
* @author zhangdd on 2022/2/25
*/
public abstract class JdbcTransactionObjectSupport {
private ConnectionHolder connectionHolder;
public void setConnectionHolder(ConnectionHolder connectionHolder) {
this.connectionHolder = connectionHolder;... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/JdbcTransactionObjectSupport.java | Java | apache-2.0 | 520 |
package cn.bugstack.springframework.jdbc.datasource;
import cn.hutool.core.lang.Assert;
import java.sql.Connection;
/**
* @author zhangdd on 2022/2/9
*/
public class SimpleConnectionHandler implements ConnectionHandler {
private final Connection connection;
public SimpleConnectionHandler(Connection conne... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/datasource/SimpleConnectionHandler.java | Java | apache-2.0 | 536 |
package cn.bugstack.springframework.jdbc.support;
import cn.bugstack.springframework.beans.factory.InitializingBean;
import javax.sql.DataSource;
/**
* @author zhangdd on 2022/2/9
*/
public abstract class JdbcAccessor implements InitializingBean {
private DataSource dataSource;
public DataSource getDat... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/support/JdbcAccessor.java | Java | apache-2.0 | 746 |
package cn.bugstack.springframework.jdbc.support;
import cn.bugstack.springframework.jdbc.UncategorizedSQLException;
import cn.bugstack.springframework.jdbc.core.*;
import cn.bugstack.springframework.jdbc.datasource.DataSourceUtils;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.lang.Assert;
import... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/support/JdbcTemplate.java | Java | apache-2.0 | 9,707 |
package cn.bugstack.springframework.jdbc.support;
//import com.sun.org.slf4j.internal.Logger;
//import com.sun.org.slf4j.internal.LoggerFactory;
import cn.bugstack.springframework.util.NumberUtils;
import cn.hutool.core.util.StrUtil;
import java.math.BigDecimal;
import java.sql.*;
/**
* @author zhangdd on 2022/2/9... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/jdbc/support/JdbcUtils.java | Java | apache-2.0 | 5,249 |
package cn.bugstack.springframework.stereotype;
import java.lang.annotation.*;
/**
* Indicates that an annotated class is a "component".
* Such classes are considered as candidates for auto-detection
* when using annotation-based configuration and classpath scanning.
*/
@Target(ElementType.TYPE)
@Retention(Retent... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/stereotype/Component.java | Java | apache-2.0 | 416 |
package cn.bugstack.springframework.tx.transaction;
/**
* @author zhangdd on 2022/2/22
*/
public class CannotCreateTransactionException extends TransactionException{
public CannotCreateTransactionException(String message) {
super(message);
}
public CannotCreateTransactionException(String messa... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/CannotCreateTransactionException.java | Java | apache-2.0 | 384 |
package cn.bugstack.springframework.tx.transaction;
/**
* @author zhangdd on 2022/2/22
*/
public class NestedTransactionNotSupportedException extends CannotCreateTransactionException{
public NestedTransactionNotSupportedException(String message) {
super(message);
}
public NestedTransactionNotSup... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/NestedTransactionNotSupportedException.java | Java | apache-2.0 | 410 |
package cn.bugstack.springframework.tx.transaction;
/**
* @author zhangdd on 2022/2/21
*/
public interface PlatformTransactionManager {
TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException;
void commit(TransactionStatus status) throws TransactionException;
voi... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/PlatformTransactionManager.java | Java | apache-2.0 | 389 |
package cn.bugstack.springframework.tx.transaction;
/**
* @author zhangdd on 2022/2/22
*/
public interface SavepointManager {
Object createSavepoint() throws TransactionException;
void rollbackToSavepoint(Object savepoint) throws TransactionException;
void releaseSavepoint(Object savepoint) throws Tra... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/SavepointManager.java | Java | apache-2.0 | 341 |
package cn.bugstack.springframework.tx.transaction;
import java.sql.Connection;
/**
* @author zhangdd on 2022/2/21
*/
public interface TransactionDefinition {
/**
* 这个是spring默认的事务传播行为
* 如果正处于一个事务中,则加入,否则创建一个新的事务
*/
int PROPAGATION_REQUIRED = 0;
/**
* 如果正处于一个事务中,则加入,否则不使用事务
*/
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/TransactionDefinition.java | Java | apache-2.0 | 2,161 |
package cn.bugstack.springframework.tx.transaction;
/**
* @author zhangdd on 2022/2/22
*/
public class TransactionException extends RuntimeException{
public TransactionException(String message) {
super(message);
}
public TransactionException(String message, Throwable cause) {
super(mess... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/TransactionException.java | Java | apache-2.0 | 341 |
package cn.bugstack.springframework.tx.transaction;
import java.io.Flushable;
import java.io.IOException;
/**
* @author zhangdd on 2022/2/22
*/
public interface TransactionStatus extends SavepointManager, Flushable {
/**
* 是否开启新的事务
*/
boolean isNewTransaction();
boolean hasSavepoint();
... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/TransactionStatus.java | Java | apache-2.0 | 473 |
package cn.bugstack.springframework.tx.transaction.annotation;
import cn.bugstack.springframework.tx.transaction.interceptor.AbstractFallbackTransactionAttributeSource;
import cn.bugstack.springframework.tx.transaction.interceptor.TransactionAttribute;
import java.io.Serializable;
import java.lang.reflect.AnnotatedE... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/annotation/AnnotationTransactionAttributeSource.java | Java | apache-2.0 | 1,708 |
package cn.bugstack.springframework.tx.transaction.annotation;
import cn.bugstack.springframework.core.annotation.AnnotatedElementUtils;
import cn.bugstack.springframework.core.annotation.AnnotationAttributes;
import cn.bugstack.springframework.tx.transaction.interceptor.RollbackRuleAttribute;
import cn.bugstack.spri... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/annotation/SpringTransactionAnnotationParser.java | Java | apache-2.0 | 1,631 |
package cn.bugstack.springframework.tx.transaction.annotation;
import cn.bugstack.springframework.tx.transaction.interceptor.TransactionAttribute;
import java.lang.reflect.AnnotatedElement;
/**
* @author zhangdd on 2022/2/26
*/
public interface TransactionAnnotationParser {
/**
* 解析 事务注解
*/
Tra... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/annotation/TransactionAnnotationParser.java | Java | apache-2.0 | 406 |
package cn.bugstack.springframework.tx.transaction.annotation;
import java.lang.annotation.*;
/**
* @author zhangdd on 2022/2/26
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Transactional {
Class<? extends Throwable>[] rollbackF... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/annotation/Transactional.java | Java | apache-2.0 | 339 |
package cn.bugstack.springframework.tx.transaction.interceptor;
import cn.bugstack.springframework.core.MethodClassKey;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author zhangdd on 2022/2/26
*/
public abstract clas... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/interceptor/AbstractFallbackTransactionAttributeSource.java | Java | apache-2.0 | 2,895 |
package cn.bugstack.springframework.tx.transaction.interceptor;
import cn.bugstack.springframework.aop.ClassFilter;
import cn.bugstack.springframework.aop.Pointcut;
import cn.bugstack.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;
/**
* @author zhangdd on 2022/2/27
*/
public class BeanFactoryTrans... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/interceptor/BeanFactoryTransactionAttributeSourceAdvisor.java | Java | apache-2.0 | 1,108 |
package cn.bugstack.springframework.tx.transaction.interceptor;
import cn.bugstack.springframework.tx.transaction.support.DefaultTransactionDefinition;
/**
* @author zhangdd on 2022/2/26
*/
public class DefaultTransactionAttribute extends DefaultTransactionDefinition implements TransactionAttribute {
public ... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/interceptor/DefaultTransactionAttribute.java | Java | apache-2.0 | 617 |
package cn.bugstack.springframework.tx.transaction.interceptor;
import cn.bugstack.springframework.tx.transaction.support.DelegatingTransactionDefinition;
import java.io.Serializable;
/**
* @author zhangdd on 2022/2/27
*/
public abstract class DelegatingTransactionAttribute extends DelegatingTransactionDefinition... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/interceptor/DelegatingTransactionAttribute.java | Java | apache-2.0 | 718 |
package cn.bugstack.springframework.tx.transaction.interceptor;
import java.io.Serializable;
/**
* @author zhangdd on 2022/2/26
*/
public class RollbackRuleAttribute implements Serializable {
private final String exceptionName;
public RollbackRuleAttribute(Class<?> clazz) {
this.exceptionName = cl... | 2302_77879529/spring | small-spring-step-19/src/main/java/cn/bugstack/springframework/tx/transaction/interceptor/RollbackRuleAttribute.java | Java | apache-2.0 | 343 |