Package com.github.overengineer.scope.conversation.annotations

Examples of com.github.overengineer.scope.conversation.annotations.EndConversation


                        }
                        if (LOG.isDebugEnabled()) {
                            LOG.debug("Adding method [{}] as an End Action for Conversation [{}]", methodName, conversation);
                        }
                        if (method.isAnnotationPresent(EndConversation.class)) {
                            EndConversation config = method.getAnnotation(EndConversation.class);
                            configuration.addEndAction(methodName, config.accessibleFromView());
                        } else {
                            configuration.addEndAction(methodName, false);
                        }
                    }
                }
View Full Code Here


    @Override
    public Collection<String> getEndConversations(Class<?> clazz, Method method) {
        Set<String> methodConversations = new HashSet<String>();
        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(EndConversation.class)) {
            EndConversation conversationmethod = method.getAnnotation(EndConversation.class);
            methodConversations.addAll(Arrays.asList(conversationmethod.conversations()));
            if (declaringClass.equals(clazz) && methodConversations.size() == 0) {
                methodConversations.addAll(Arrays.asList(getConversationsWithoutInheritance(clazz, actionSuffix)));
            }
        } else if (declaringClass.equals(clazz) && method.getName().startsWith("end")) {
            methodConversations.addAll(Arrays.asList(getConversationsWithoutInheritance(clazz, actionSuffix)));
View Full Code Here

TOP

Related Classes of com.github.overengineer.scope.conversation.annotations.EndConversation

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.