public class org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource extends org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource implements java.io.Serializable
{
private static final boolean jta12Present;
private static final boolean ejb3Present;
private final boolean publicMethodsOnly;
private final java.util.Set annotationParsers;
public void <init>()
{
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
specialinvoke v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: void <init>(boolean)>(1);
return;
}
public void <init>(boolean)
{
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
org.springframework.transaction.'annotation'.Ejb3TransactionAnnotationParser v;
java.util.Set v, v, v;
org.springframework.transaction.'annotation'.JtaTransactionAnnotationParser v;
java.util.LinkedHashSet v;
boolean v, v, v;
org.springframework.transaction.'annotation'.SpringTransactionAnnotationParser v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: boolean;
specialinvoke v.<org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource: void <init>()>();
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly> = v;
v = new java.util.LinkedHashSet;
specialinvoke v.<java.util.LinkedHashSet: void <init>(int)>(4);
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers> = v;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = new org.springframework.transaction.'annotation'.SpringTransactionAnnotationParser;
specialinvoke v.<org.springframework.transaction.'annotation'.SpringTransactionAnnotationParser: void <init>()>();
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
v = <org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean jta12Present>;
if v == 0 goto label;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = new org.springframework.transaction.'annotation'.JtaTransactionAnnotationParser;
specialinvoke v.<org.springframework.transaction.'annotation'.JtaTransactionAnnotationParser: void <init>()>();
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
label:
v = <org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean ejb3Present>;
if v == 0 goto label;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = new org.springframework.transaction.'annotation'.Ejb3TransactionAnnotationParser;
specialinvoke v.<org.springframework.transaction.'annotation'.Ejb3TransactionAnnotationParser: void <init>()>();
interfaceinvoke v.<java.util.Set: boolean add(java.lang.Object)>(v);
label:
return;
}
public void <init>(org.springframework.transaction.'annotation'.TransactionAnnotationParser)
{
java.util.Set v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
org.springframework.transaction.'annotation'.TransactionAnnotationParser v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: org.springframework.transaction.'annotation'.TransactionAnnotationParser;
specialinvoke v.<org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource: void <init>()>();
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly> = 1;
staticinvoke <org.springframework.util.Assert: void notNull(java.lang.Object,java.lang.String)>(v, "TransactionAnnotationParser must not be null");
v = staticinvoke <java.util.Collections: java.util.Set singleton(java.lang.Object)>(v);
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers> = v;
return;
}
public transient void <init>(org.springframework.transaction.'annotation'.TransactionAnnotationParser[])
{
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
org.springframework.transaction.'annotation'.TransactionAnnotationParser[] v;
int v;
java.util.LinkedHashSet v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: org.springframework.transaction.'annotation'.TransactionAnnotationParser[];
specialinvoke v.<org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource: void <init>()>();
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly> = 1;
staticinvoke <org.springframework.util.Assert: void notEmpty(java.lang.Object[],java.lang.String)>(v, "At least one TransactionAnnotationParser needs to be specified");
v = new java.util.LinkedHashSet;
v = lengthof v;
specialinvoke v.<java.util.LinkedHashSet: void <init>(int)>(v);
staticinvoke <java.util.Collections: boolean addAll(java.util.Collection,java.lang.Object[])>(v, v);
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers> = v;
return;
}
public void <init>(java.util.Set)
{
java.util.Set v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: java.util.Set;
specialinvoke v.<org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource: void <init>()>();
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly> = 1;
staticinvoke <org.springframework.util.Assert: void notEmpty(java.util.Collection,java.lang.String)>(v, "At least one TransactionAnnotationParser needs to be specified");
v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers> = v;
return;
}
protected org.springframework.transaction.interceptor.TransactionAttribute findTransactionAttribute(java.lang.Class)
{
org.springframework.transaction.interceptor.TransactionAttribute v;
java.lang.Class v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: java.lang.Class;
v = virtualinvoke v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: org.springframework.transaction.interceptor.TransactionAttribute determineTransactionAttribute(java.lang.reflect.AnnotatedElement)>(v);
return v;
}
protected org.springframework.transaction.interceptor.TransactionAttribute findTransactionAttribute(java.lang.reflect.Method)
{
org.springframework.transaction.interceptor.TransactionAttribute v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
java.lang.reflect.Method v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: java.lang.reflect.Method;
v = virtualinvoke v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: org.springframework.transaction.interceptor.TransactionAttribute determineTransactionAttribute(java.lang.reflect.AnnotatedElement)>(v);
return v;
}
protected org.springframework.transaction.interceptor.TransactionAttribute determineTransactionAttribute(java.lang.reflect.AnnotatedElement)
{
org.springframework.transaction.interceptor.TransactionAttribute v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
java.util.Iterator v;
java.util.Set v;
java.lang.'annotation'.Annotation[] v;
int v;
java.lang.Object v;
boolean v;
java.lang.reflect.AnnotatedElement v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: java.lang.reflect.AnnotatedElement;
v = interfaceinvoke v.<java.lang.reflect.AnnotatedElement: java.lang.'annotation'.Annotation[] getAnnotations()>();
v = lengthof v;
if v <= 0 goto label;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.springframework.transaction.'annotation'.TransactionAnnotationParser: org.springframework.transaction.interceptor.TransactionAttribute parseTransactionAnnotation(java.lang.reflect.AnnotatedElement)>(v);
if v == null goto label;
return v;
label:
return null;
}
protected boolean allowPublicMethodsOnly()
{
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
boolean v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly>;
return v;
}
public boolean equals(java.lang.Object)
{
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
java.util.Set v, v;
java.lang.Object v;
boolean v, v, v, v, v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v := @parameter: java.lang.Object;
if v != v goto label;
return 1;
label:
v = v instanceof org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
if v != 0 goto label;
return 0;
label:
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = interfaceinvoke v.<java.util.Set: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly>;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean publicMethodsOnly>;
if v != v goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public int hashCode()
{
int v;
java.util.Set v;
org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource v;
v := @this: org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource;
v = v.<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: java.util.Set annotationParsers>;
v = interfaceinvoke v.<java.util.Set: int hashCode()>();
return v;
}
static void <clinit>()
{
java.lang.Class v, v;
java.lang.ClassLoader v, v;
boolean v, v;
v = class "Lorg/springframework/transaction/annotation/AnnotationTransactionAttributeSource;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <org.springframework.util.ClassUtils: boolean isPresent(java.lang.String,java.lang.ClassLoader)>("javax.transaction.Transactional", v);
<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean jta12Present> = v;
v = class "Lorg/springframework/transaction/annotation/AnnotationTransactionAttributeSource;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <org.springframework.util.ClassUtils: boolean isPresent(java.lang.String,java.lang.ClassLoader)>("javax.ejb.TransactionAttribute", v);
<org.springframework.transaction.'annotation'.AnnotationTransactionAttributeSource: boolean ejb3Present> = v;
return;
}
}