|
|
@ -477,14 +477,15 @@ public class GenericScope implements Scope, BeanFactoryPostProcessor, |
|
|
|
return invocation.proceed(); |
|
|
|
return invocation.proceed(); |
|
|
|
} |
|
|
|
} |
|
|
|
Object proxy = getObject(); |
|
|
|
Object proxy = getObject(); |
|
|
|
ReadWriteLock readWriteLock = scope.getLock(this.targetBeanName); |
|
|
|
ReadWriteLock readWriteLock = scope.getLock(this.targetBeanName); |
|
|
|
if (readWriteLock == null) { |
|
|
|
if (readWriteLock == null) { |
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
logger.debug("For bean with name [" + this.targetBeanName + "] there is no read write lock. Will create a new one to avoid NPE"); |
|
|
|
logger.debug("For bean with name [" + this.targetBeanName |
|
|
|
} |
|
|
|
+ "] there is no read write lock. Will create a new one to avoid NPE"); |
|
|
|
readWriteLock = new ReentrantReadWriteLock(); |
|
|
|
} |
|
|
|
} |
|
|
|
readWriteLock = new ReentrantReadWriteLock(); |
|
|
|
Lock lock = readWriteLock.readLock(); |
|
|
|
} |
|
|
|
|
|
|
|
Lock lock = readWriteLock.readLock(); |
|
|
|
lock.lock(); |
|
|
|
lock.lock(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (proxy instanceof Advised) { |
|
|
|
if (proxy instanceof Advised) { |
|
|
|