Examples of TracClassMethod


Examples of com.nineteendrops.tracdrops.client.core.annotations.TracClassMethod

                String tracClassName = Utils.findTracClassName(aClass);
                if (tracClassName == null) {
                    throw new TracException(MessageUtils.registerErrorLog(log, "core.no.trac.classname.found", aClass.getName()));
                }

                TracClassMethod tracClassMethodMetadata = Utils.getTracClassMethodAnnotation(pMethod);

                String tracClassMethodName = Utils.buildTracMethodNameInvocation(tracClassName, tracClassMethodMetadata);

                Class returnDecoder = tracClassMethodMetadata.returnDecoder();

                ArrayList encodedPARGS = new ArrayList();
                Annotation[][] parameterAnnotations = pMethod.getParameterAnnotations();

                int parameterOrder = 0;
View Full Code Here

Examples of com.nineteendrops.tracdrops.client.core.annotations.TracClassMethod

                String tracClassName = Utils.findTracClassName(aClass);
                if(tracClassName == null){
                    throw new TracException(MessageUtils.registerErrorLog(log, "core.no.trac.classname.found", aClass.getName()));
                }

                TracClassMethod tracClassMethodMetadata = Utils.getTracClassMethodAnnotation(pMethod);

                String methodName = Utils.buildTracMethodNameInvocation(tracClassName, tracClassMethodMetadata);

                Object result = null;
                try {

                    result = getClient().execute(methodName, pArgs);

                } catch (XmlRpcInvocationException e) {
                    throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.invocation.exception", e.getMessage()), e);

                } catch(XmlRpcException e){
                    throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.xmlrpc.exception", e.getMessage()), e);
                }
                catch (Throwable e){
                    throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.unknown.exception", e.getMessage()), e);
                }

                Class returnType = tracClassMethodMetadata.tracReturnType();
                if(returnType == Object.class){
                    returnType = pMethod.getReturnType();
                }

                TypeConverter typeConverter = typeConverterFactory.getTypeConverter(returnType);
View Full Code Here

Examples of com.nineteendrops.tracdrops.client.core.annotations.TracClassMethod

        return annotationsForTracClass == null ? null : annotationsForTracClass.tracClass();

    }

    public static TracClassMethod getTracClassMethodAnnotation(Method method){
        TracClassMethod annotationsForTracClassMethod = (TracClassMethod)method.getAnnotation(TracClassMethod.class);

        return annotationsForTracClassMethod;
    }
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.