Project

General

Profile

« Previous | Next » 

Revision 2661173a

Added by Andreas Müller almost 4 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/lazyloading/CdmLazyLoader.java
35 35
@Configurable(autowire = Autowire.BY_TYPE)
36 36
public class CdmLazyLoader {
37 37

  
38

  
39
	private final Set classes = new HashSet();
38
	private final Set classes = new HashSet<>();
40 39

  
41 40
	public static boolean enableWeaving = true;
42
	private static Set<String> classesToIgnore = new HashSet<String>();
41
	private static Set<String> classesToIgnore = new HashSet<>();
43 42

  
44 43

  
45 44
	@Autowired
......
48 47
	public CdmLazyLoader() {
49 48
		//classesToIgnore.add("eu.etaxonomy.cdm.model.term.TermVocabulary");
50 49
		//classesToIgnore.add("eu.etaxonomy.cdm.model.term.OrderedTermVocabulary");
51

  
52 50
	}
53 51

  
54 52
	/**
55 53
	 *  Point cut for the 'initialize' method of the AbstractLazyInitializer.
56
	 *
57 54
	 */
58 55
	@Pointcut("execution(* org.hibernate.proxy.AbstractLazyInitializer.initialize())")
59 56
	public void possibleEntityLazyInitializationException() {
60 57
	}
61 58

  
62

  
63 59
	/**
64 60
	 *  'Around' advice for the initialization of CDM Entity Objects
65 61
	 *
......
83 79

  
84 80
	/**
85 81
	 *  Point cut for the 'initialize' method of the AbstractPersistentCollection.
86
	 *
87 82
	 */
88 83
	@Pointcut("execution(protected final void org.hibernate.collection.internal.AbstractPersistentCollection.initialize(..))")
89 84
	public void possibleCollectionLazyInitializationException() {
......
128 123
			}
129 124
		}
130 125
		return pjp.proceed();
131

  
132 126
	}
133 127

  
134 128
	private CollectionField getCollectionField(PersistentCollection pc) {
......
183 177
			return this.fieldName;
184 178
		}
185 179
	}
186

  
187 180
}

Also available in: Unified diff