Examples of EJBBusinessMethod


Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        ClassLoader beanClassLoader = sessionBeanComponentConfiguration.getComponentClass().getClassLoader();
        Map<EJBBusinessMethod, LockType> methodApplicableLockTypes = new HashMap();
        for (Map.Entry<EJBMethodDescription, LockType> entry : this.methodLockTypes.entrySet()) {
            EJBMethodDescription method = entry.getKey();
            try {
                EJBBusinessMethod ejbMethod = this.getEJBBusinessMethod(method, beanClassLoader);
                methodApplicableLockTypes.put(ejbMethod, entry.getValue());

            } catch (ClassNotFoundException cnfe) {
                throw new DeploymentUnitProcessingException("Could not process LockType configurations due to exception: ", cnfe);
            }
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

    private EJBBusinessMethod getEJBBusinessMethod(EJBMethodDescription method, ClassLoader classLoader) throws ClassNotFoundException {
        String methodName = method.getMethodName();
        String[] types = method.getMethodParams();
        if (types == null || types.length == 0) {
            return new EJBBusinessMethod(methodName, new Class<?>[0]);
        }
        Class<?>[] paramTypes = new Class<?>[types.length];
        int i = 0;
        for (String type : types) {
            paramTypes[i++] = PrimitiveClassLoaderUtil.loadClass(type.toString(), classLoader);
        }
        return new EJBBusinessMethod(methodName, paramTypes);
    }
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        super.stop(stopContext);
    }

    @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
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        return LockType.WRITE;
    }

    @Override
    public AccessTimeoutDetails getAccessTimeout(Method method) {
        final EJBBusinessMethod ejbMethod = new EJBBusinessMethod(method);
        final AccessTimeoutDetails accessTimeout = this.methodAccessTimeouts.get(ejbMethod);
        if (accessTimeout != null) {
            return accessTimeout;
        }
        // check bean level access timeout
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

    /**
     * Returns the {@link AccessTimeout} applicable to given method
     */
    public AccessTimeoutDetails getAccessTimeout(Method method) {
        final EJBBusinessMethod ejbMethod = new EJBBusinessMethod(method);
        final AccessTimeoutDetails accessTimeout = this.methodAccessTimeouts.get(ejbMethod);
        if (accessTimeout != null) {
            return accessTimeout;
        }
        // check bean level access timeout
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

     * @param lockType         The applicable lock type for the method
     * @param methodName       The name of the method
     * @param methodParamTypes The method param types
     */
    public void setLockType(LockType lockType, String methodName, String... methodParamTypes) {
        EJBBusinessMethod ejbMethod = new EJBBusinessMethod(methodName, methodParamTypes);
        this.methodLockTypes.put(ejbMethod, lockType);
    }
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

     * @param accessTimeout    The applicable access timeout for the method
     * @param methodName       The name of the method
     * @param methodParamTypes The method param types
     */
    public void setAccessTimeout(AccessTimeout accessTimeout, String methodName, String... methodParamTypes) {
        EJBBusinessMethod ejbMethod = new EJBBusinessMethod(methodName, methodParamTypes);
        this.methodAccessTimeouts.put(ejbMethod, accessTimeout);
    }
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        super.stop();
    }

    @Override
    public LockType getLockType(Method method) {
        EJBBusinessMethod beanMethod = new EJBBusinessMethod(method.getName(), toString(method.getParameterTypes()));
        LockType lockType = this.methodLockTypes.get(beanMethod);
        if (lockType != null) {
            return lockType;
        }
        // check bean level lock type
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        return LockType.WRITE;
    }

    @Override
    public AccessTimeout getAccessTimeout(Method method) {
        EJBBusinessMethod beanMethod = new EJBBusinessMethod(method.getName(), toString(method.getParameterTypes()));
        AccessTimeout accessTimeout = this.methodAccessTimeouts.get(beanMethod);
        if (accessTimeout != null) {
            return accessTimeout;
        }
        // check bean level access timeout
View Full Code Here

Examples of org.jboss.as.ejb3.component.EJBBusinessMethod

        super.stop(stopContext);
    }

    @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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.