seems to be wrong, as the factory class depends on how we access the factory. e.g. in the sameFactoryLock FactoryLockTest if I change the factory scopes to ScopeType.SESSION, the same "factoryLock.test" component is "org.javassist.tmp.java.lang.Object_$$_javassist_seam_1" in one thread and "org.jboss.seam.test.integration.FactoryLockTest$FactoryLockAction" in the other.
The
synchronized (factory.getClass())
seems to be wrong, as the factory class depends on how we access the factory. e.g. in the sameFactoryLock FactoryLockTest if I change the factory scopes to ScopeType.SESSION, the same "factoryLock.test" component is "org.javassist.tmp.java.lang.Object_$$_javassist_seam_1" in one thread and "org.jboss.seam.test.integration.FactoryLockTest$FactoryLockAction" in the other.