Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.MethodParams


    List<InterceptorBinding> interceptorBindings = ejbJar.getAssemblyDescriptor().getInterceptorBinding();
   
    InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
    NamedMethod method = new NamedMethod();
    method.setMethodName("test"); //$NON-NLS-1$
    method.setMethodParams(new MethodParams());
    binding.setMethod(method);
    interceptorBindings.add(binding);
   
    // execute
    converter.processInterceptors(ejbJar);
View Full Code Here


   
    InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
    binding.setExcludeDefaultInterceptors(true);
    NamedMethod method = new NamedMethod();
    method.setMethodName("test"); //$NON-NLS-1$
    method.setMethodParams(new MethodParams());
    binding.setMethod(method);
    interceptorBindings.add(binding);
   
    // execute
    converter.processInterceptors(ejbJar);
View Full Code Here

   
    InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
    binding.setExcludeClassInterceptors(true);
    NamedMethod method = new NamedMethod();
    method.setMethodName("test"); //$NON-NLS-1$
    method.setMethodParams(new MethodParams());
    binding.setMethod(method);
    interceptorBindings.add(binding);
   
    // execute
    converter.processInterceptors(ejbJar);
View Full Code Here

    containerTransactions.add(containerTransaction);
  }

  private Method createMethod(String ejbName, String methodName, String[] params) {
    Method method = new Method(ejbName, methodName);
    MethodParams methodParams = new MethodParams();

    for (int i = 0; i < params.length; i++) {
      methodParams.getMethodParam().add(params[i]);
    }
   
    method.setMethodParams(methodParams);
    return method;
  }
View Full Code Here

      while (methodIter.hasNext()) {
        Method method = (Method) methodIter.next();
        EnterpriseBean enterpriseBean = ejbJar.getEnterpriseBean(method.getEjbName());
        try {
          MethodParams methodParams = method.getMethodParams();
          String[] params = methodParams.getMethodParam().toArray(new String[0]);
          if ((!"*".equals(method.getMethodName())) && descriptor.getExcludeList().getMethod().contains(method)) { //$NON-NLS-1$
            annotationHelper.addMethodAnnotation(enterpriseBean.getEjbClass(), method.getMethodName(), params, DenyAll.class, null);
            continue;
          }
          if (methodPermission.getUnchecked()) {
View Full Code Here

        methodInfo.className = method.getClassName();
        if (methodInfo.className == null || methodInfo.className.equals("")) {
            methodInfo.className = "*";
        }

        final MethodParams mp = method.getMethodParams();
        if (mp != null) {
            methodInfo.methodParams = mp.getMethodParam();
        }
        return methodInfo;
    }
View Full Code Here

                            addContainerTransaction(attribute, ejbName, method, assemblyDescriptor);
                        } else {
                            // method name already declared
                            List<MethodTransaction> list = methodTransactions.get(method.getName());
                            for (MethodTransaction mtx : list) {
                                MethodParams methodParams = mtx.getMethodParams();
                                if (methodParams == null) {
                                    // params not specified, so this is more specific
                                    addContainerTransaction(attribute, ejbName, method, assemblyDescriptor);
                                } else {
                                    List<String> params1 = methodParams.getMethodParam();
                                    String[] params2 = asStrings(method.getParameterTypes());
                                    if (params1.size() != params2.length) {
                                        // params not the same
                                        addContainerTransaction(attribute, ejbName, method, assemblyDescriptor);
                                    } else {
View Full Code Here

        methodInfo.ejbDeploymentId = d.getDeploymentId();
        methodInfo.ejbName = method.getEjbName();
        methodInfo.methodIntf = (method.getMethodIntf() == null) ? null : method.getMethodIntf().toString();
        methodInfo.methodName = method.getMethodName();

        MethodParams mp = method.getMethodParams();
        if (mp != null) {
            methodInfo.methodParams = mp.getMethodParam();
        }
        return methodInfo;
    }
View Full Code Here

        return buffer == null ? null : buffer.toString();
    }

    private Method getMethod(final Class<?> clazz, final AsyncMethod asyncMethod) {
        try {
            final MethodParams methodParams = asyncMethod.getMethodParams();
            final Class<?>[] parameterTypes;
            if (methodParams != null) {
                parameterTypes = new Class[methodParams.getMethodParam().size()];
                int arrayIndex = 0;
                for (final String parameterType : methodParams.getMethodParam()) {
                    parameterTypes[arrayIndex++] = loadClass(parameterType);
                }
            } else {
                parameterTypes = new Class[0];
            }
View Full Code Here

                    handler.addMethodLevelDeclaration(attribute, method.get());
                } else {
                    // method name already declared
                    final List<MethodAttribute> list = existingDeclarations.get(method.get().getName());
                    for (final MethodAttribute mtx : list) {
                        final MethodParams methodParams = mtx.getMethodParams();
                        if (methodParams == null) {
                            // params not specified, so this is more specific
                            handler.addMethodLevelDeclaration(attribute, method.get());
                        } else {
                            final List<String> params1 = methodParams.getMethodParam();
                            final String[] params2 = asStrings(method.get().getParameterTypes());
                            if (params1.size() != params2.length) {
                                // params not the same
                                handler.addMethodLevelDeclaration(attribute, method.get());
                            } else {
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.MethodParams

Copyright © 2018 www.massapicom. 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.