Revision 23de68fc
Added by Andreas Müller almost 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/aspectj/PropertyChangeAspect.aj | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.cdm.aspectj; |
2 | 10 |
|
3 | 11 |
import java.lang.reflect.Field; |
4 | 12 |
import java.lang.reflect.InvocationTargetException; |
5 | 13 |
|
6 |
import org.apache.log4j.Logger; |
|
14 |
import org.apache.logging.log4j.LogManager; |
|
15 |
import org.apache.logging.log4j.Logger; |
|
7 | 16 |
import org.aspectj.lang.Signature; |
8 | 17 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
9 | 18 |
import eu.etaxonomy.cdm.model.common.ICdmBase; |
... | ... | |
15 | 24 |
* CdmBase defines the rest of the ProeprtyChangeSupport like listener registration |
16 | 25 |
*/ |
17 | 26 |
public aspect PropertyChangeAspect { |
18 |
static Logger logger = Logger.getLogger(PropertyChangeAspect.class); |
|
27 |
|
|
28 |
static Logger logger = LogManager.getLogger(PropertyChangeAspect.class); |
|
19 | 29 |
|
20 | 30 |
// pointcut execAdder(CdmBase cb): target(cb) && execution(void CdmBase+.add*(..) ); //once implemented we may want to remove addToSetWithChangeEvent and remove... from CdmBase |
21 | 31 |
|
... | ... | |
33 | 43 |
// pointcut callSetter( CdmBase b ) : call( * CdmBase+.set*(..) ) && target( b ); |
34 | 44 |
|
35 | 45 |
|
36 |
|
|
37 | 46 |
/** |
38 | 47 |
* @param cb |
39 | 48 |
* Around aspect that will be weaven into the original setter methods of the CdmBase derived classes |
Also available in: Unified diff
ref #9359 upgrade cdmlib to log4j 2