use of javax.ejb.LockType in project wildfly by wildfly.
the class SingletonComponent method getLockType.
@Override
public LockType getLockType(Method method) {
final EJBBusinessMethod ejbMethod = new EJBBusinessMethod(method);
final LockType lockType = this.methodLockTypes.get(ejbMethod);
if (lockType != null) {
return lockType;
}
// check bean level lock type
final LockType type = this.beanLevelLockType.get(method.getDeclaringClass().getName());
if (type != null) {
return type;
}
// default WRITE lock type
return LockType.WRITE;
}
Aggregations