Search in sources :

Example 1 with LockType

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;
}
Also used : EJBBusinessMethod(org.jboss.as.ejb3.component.EJBBusinessMethod) LockType(javax.ejb.LockType)

Aggregations

LockType (javax.ejb.LockType)1 EJBBusinessMethod (org.jboss.as.ejb3.component.EJBBusinessMethod)1