Package org.apache.tuscany.sca.interfacedef

Examples of org.apache.tuscany.sca.interfacedef.InvalidAnnotationException


            }
        }

        if (remotable) {
            if (javaInterface.isRemotableSet() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here


    private void checkMethodAnnotations(Method method, JavaInterface javaInterface) throws InvalidAnnotationException {
        for ( Annotation a : method.getAnnotations() ) {
            if( a instanceof Remotable ) {
                // [JCA90053] @Remotable annotation cannot be on a method that is not a setter method
                if( !JavaIntrospectionHelper.isSetter(method) ) {
                    throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                         " which is not a Setter method: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                } // end if
            } // end if   
        } // end for

        // Parameter annotations
        for (Annotation[] parmAnnotations : method.getParameterAnnotations()) {
            for (Annotation annotation : parmAnnotations) {
                if (annotation instanceof Remotable ) {
                    throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                         " parameter: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                } // end if
            } // end for   
        } // end for
        method.getParameterAnnotations();
View Full Code Here

            }
        }

        if (remotable) {
            if (javaInterface.isRemotableSet() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here

    private void checkMethodAnnotations(Method method, JavaInterface javaInterface) throws InvalidAnnotationException {
        for ( Annotation a : method.getAnnotations() ) {
            if( a instanceof Remotable ) {
                // [JCA90053] @Remotable annotation cannot be on a method that is not a setter method
                if( !JavaIntrospectionHelper.isSetter(method) ) {
                    throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                         " which is not a Setter method: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                } // end if
            } // end if   
        } // end for

        // Parameter annotations
        for (Annotation[] parmAnnotations : method.getParameterAnnotations()) {
            for (Annotation annotation : parmAnnotations) {
                if (annotation instanceof Remotable ) {
                    throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                         " parameter: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                } // end if
            } // end for   
        } // end for
        method.getParameterAnnotations();
View Full Code Here

            }
        }
       
        if (remotable) {
            if (javaInterface.isRemotableSet() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here

            }
        }

        if (remotable) {
            if (javaInterface.isRemotableSetFromSCDL() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here

        for (final Method method : declaredMethods) {
            for ( Annotation a : method.getAnnotations() ) {
                if( a instanceof Remotable ) {
                    // [JCA90053] @Remotable annotation cannot be on a method that is not a setter method
                    if( !JavaIntrospectionHelper.isSetter(method) ) {
                        throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                             " which is not a Setter method: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                    } // end if
                } // end if   
            } // end for
           
            // Parameter annotations
            for (Annotation[] parmAnnotations : method.getParameterAnnotations()) {
                for (Annotation annotation : parmAnnotations) {
                    if (annotation instanceof Remotable ) {
                        throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                             " parameter: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                    } // end if
                } // end for   
            } // end for
        }
View Full Code Here

            }
        }
       
        if (remotable) {
            if (javaInterface.isRemotableSet() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here

            }
        }

        if (remotable) {
            if (javaInterface.isRemotableSetFromSCDL() && javaInterface.isRemotable() == false) {
                throw new InvalidAnnotationException("[JCA30005] @Remotable annotation present in a interface marked as not remotable in the SCDL", Remotable.class);
            }
        } else {
            if (javaInterface.isRemotableSet()) {
                remotable = javaInterface.isRemotable();
            }
View Full Code Here

        for (final Method method : declaredMethods) {
            for ( Annotation a : method.getAnnotations() ) {
                if( a instanceof Remotable ) {
                    // [JCA90053] @Remotable annotation cannot be on a method that is not a setter method
                    if( !JavaIntrospectionHelper.isSetter(method) ) {
                        throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                             " which is not a Setter method: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                    } // end if
                } // end if   
            } // end for
           
            // Parameter annotations
            for (Annotation[] parmAnnotations : method.getParameterAnnotations()) {
                for (Annotation annotation : parmAnnotations) {
                    if (annotation instanceof Remotable ) {
                        throw new InvalidAnnotationException("[JCA90053] @Remotable annotation present on an interface method" +
                                                             " parameter: " + javaInterface.getName() + "/" + method.getName(), Remotable.class);
                    } // end if
                } // end for   
            } // end for
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.interfacedef.InvalidAnnotationException

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.