Author: manik.surtani(a)jboss.com
Date: 2007-12-13 19:34:14 -0500 (Thu, 13 Dec 2007)
New Revision: 4856
Modified:
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
Log:
should NOT be a singleton anymore!
Modified: core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2007-12-14
00:13:14 UTC (rev 4855)
+++
core/trunk/src/main/java/org/jboss/cache/factories/InterceptorChainFactory.java 2007-12-14
00:34:14 UTC (rev 4856)
@@ -24,27 +24,11 @@
@DefaultFactoryFor(classes = Interceptor.class)
public class InterceptorChainFactory extends ComponentFactory
{
- private static InterceptorChainFactory singleton;
-
- private InterceptorChainFactory()
- {
- // private ctor
- }
-
public static InterceptorChainFactory getInstance()
{
- if (singleton == null)
- {
- synchronized (InterceptorChainFactory.class)
- {
- if (singleton == null) singleton = new InterceptorChainFactory();
- }
- }
-
- return singleton;
+ return new InterceptorChainFactory();
}
-
public Interceptor buildInterceptorChain() throws IllegalAccessException,
ClassNotFoundException, InstantiationException
{
if (configuration.isNodeLockingOptimistic())
Show replies by date