Package org.apache.tuscany.sca.implementation.java.introspect

Examples of org.apache.tuscany.sca.implementation.java.introspect.IntrospectionException


                if (interfaze.isAnnotationPresent(Remotable.class) || interfaze.isAnnotationPresent(Callback.class)) {
                    Service service;
                    try {
                        service = createService(interfaze);
                    } catch (InvalidInterfaceException e) {
                        throw new IntrospectionException(e);
                    }
                    type.getServices().add(service);
                }
            }
            return;
        }
        Class<?>[] interfaces = annotation.interfaces();
        if (interfaces.length == 0) {
            Class<?> interfaze = annotation.value();
            if (Void.class.equals(interfaze)) {
                throw new IllegalServiceDefinitionException("No interfaces specified");
            } else {
                interfaces = new Class<?>[1];
                interfaces[0] = interfaze;
            }
        }
        for (Class<?> interfaze : interfaces) {
            if (!interfaze.isInterface()) {
                throw new InvalidServiceType("Service must be an interface", interfaze);
            }
            Service service;
            try {
                service = createService(interfaze);
            } catch (InvalidInterfaceException e) {
                throw new IntrospectionException(e);
            }
            type.getServices().add(service);
        }
    }
View Full Code Here


            if (callInterface.getCallbackClass() != null) {
                JavaInterface callbackInterface = interfaceIntrospector.introspect(callInterface.getCallbackClass());
                reference.getInterfaceContract().setCallbackInterface(callbackInterface);
            }
        } catch (InvalidInterfaceException e) {
            throw new IntrospectionException(e);
        }
        return reference;
    }
View Full Code Here

    private void addService(JavaImplementation type, Class<?> clazz) throws IntrospectionException {
        try {
            org.apache.tuscany.sca.assembly.Service service = createService(clazz);
            type.getServices().add(service);
        } catch (InvalidInterfaceException e) {
            throw new IntrospectionException(e);
        }
    }
View Full Code Here

            if (analyzeInterface(interfaze, nonPropRefMethods)) {
                org.apache.tuscany.sca.assembly.Service service;
                try {
                    service = createService(interfaze);
                } catch (InvalidInterfaceException e) {
                    throw new IntrospectionException(e);
                }
                type.getServices().add(service);
            }
        }
    }
View Full Code Here

                JavaInterface callbackInterface = interfaceIntrospector.introspect(callInterface.getCallbackClass());
                reference.getInterfaceContract().setCallbackInterface(callbackInterface);
            }
            reference.setMultiplicity(Multiplicity.ZERO_ONE);
        } catch (InvalidInterfaceException e1) {
            throw new IntrospectionException(e1);
        }
        try {
            processCallback(paramType, reference);
        } catch (InvalidServiceType e) {
            throw new IntrospectionException(e);
        }
        return reference;
    }
View Full Code Here

                if (interfaze.isAnnotationPresent(Remotable.class) || interfaze.isAnnotationPresent(Callback.class)) {
                    Service service;
                    try {
                        service = createService(interfaze);
                    } catch (InvalidInterfaceException e) {
                        throw new IntrospectionException(e);
                    }
                    type.getServices().add(service);
                }
            }
            return;
        }
        Class<?>[] interfaces = annotation.interfaces();
        if (interfaces.length == 0) {
            Class<?> interfaze = annotation.value();
            if (Void.class.equals(interfaze)) {
                throw new IllegalServiceDefinitionException("No interfaces specified");
            } else {
                interfaces = new Class<?>[1];
                interfaces[0] = interfaze;
            }
        }
        for (Class<?> interfaze : interfaces) {
            if (!interfaze.isInterface()) {
                throw new InvalidServiceType("Service must be an interface", interfaze);
            }
            Service service;
            try {
                service = createService(interfaze);
            } catch (InvalidInterfaceException e) {
                throw new IntrospectionException(e);
            }
            type.getServices().add(service);
        }
    }
View Full Code Here

            if (callInterface.getCallbackClass() != null) {
                JavaInterface callbackInterface = interfaceIntrospector.introspect(callInterface.getCallbackClass());
                reference.getInterfaceContract().setCallbackInterface(callbackInterface);
            }
        } catch (InvalidInterfaceException e) {
            throw new IntrospectionException(e);
        }
        return reference;
    }
View Full Code Here

    private void addService(JavaImplementation type, Class<?> clazz) throws IntrospectionException {
        try {
            org.apache.tuscany.sca.assembly.Service service = createService(clazz);
            type.getServices().add(service);
        } catch (InvalidInterfaceException e) {
            throw new IntrospectionException(e);
        }
    }
View Full Code Here

            if (analyzeInterface(interfaze, nonPropRefMethods)) {
                org.apache.tuscany.sca.assembly.Service service;
                try {
                    service = createService(interfaze);
                } catch (InvalidInterfaceException e) {
                    throw new IntrospectionException(e);
                }
                type.getServices().add(service);
            }
        }
    }
View Full Code Here

                JavaInterface callbackInterface = interfaceIntrospector.introspect(callInterface.getCallbackClass());
                reference.getInterfaceContract().setCallbackInterface(callbackInterface);
            }
            reference.setMultiplicity(Multiplicity.ZERO_ONE);
        } catch (InvalidInterfaceException e1) {
            throw new IntrospectionException(e1);
        }
        try {
            processCallback(paramType, reference);
        } catch (InvalidServiceType e) {
            throw new IntrospectionException(e);
        }
        return reference;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.java.introspect.IntrospectionException

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.