Examples of conversations()


Examples of com.google.code.rees.scope.conversation.annotations.ConversationController.conversations()

    protected String[] getConversationsWithoutInheritance(Class<?> clazz, String actionSuffix) {
        List<String> conversations = new ArrayList<String>();
        if (clazz.isAnnotationPresent(ConversationController.class)) {
            ConversationController controller = clazz.getAnnotation(ConversationController.class);
            String[] newConversations = controller.conversations();
            if (controller.value().equals(ConversationController.DEFAULT_VALUE)) {
                if (newConversations.length == 0) {
                    newConversations = new String[] { NamingUtil.getConventionName(clazz, actionSuffix) };
                }
            } else {
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.ConversationField.conversations()

    public Collection<String> getConversations(Class<?> clazz, Field field) {
        Set<String> fieldConversations = new HashSet<String>();
        if (field.isAnnotationPresent(ConversationField.class)) {
            ConversationField conversationField = field
                    .getAnnotation(ConversationField.class);
            String[] conversations = conversationField.conversations();
            if (conversations.length == 0) {
                conversations = getConversationsWithInheritance(clazz,
                        actionSuffix);
            }
            fieldConversations.addAll(Arrays.asList(conversations));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.ConversationField.conversations()

    public Collection<String> getConversations(Class<?> clazz, Field field) {
        Set<String> fieldConversations = new HashSet<String>();
        if (field.isAnnotationPresent(ConversationField.class)) {
            ConversationField conversationField = field
                    .getAnnotation(ConversationField.class);
            String[] conversations = conversationField.conversations();
            if (conversations.length == 0) {
                conversations = getConversationsWithInheritance(clazz,
                        actionSuffix);
            }
            fieldConversations.addAll(Arrays.asList(conversations));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.ConversationField.conversations()

    public Collection<String> getConversations(Class<?> clazz, Field field) {
        Set<String> fieldConversations = new HashSet<String>();
        if (field.isAnnotationPresent(ConversationField.class)) {
            ConversationField conversationField = field
                    .getAnnotation(ConversationField.class);
            String[] conversations = conversationField.conversations();
            if (conversations.length == 0) {
                conversations = getConversationsWithInheritance(clazz,
                        actionSuffix);
            }
            fieldConversations.addAll(Arrays.asList(conversations));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.ConversationField.conversations()

    public Collection<String> getConversations(Class<?> clazz, Field field) {
        Set<String> fieldConversations = new HashSet<String>();
        if (field.isAnnotationPresent(ConversationField.class)) {
            ConversationField conversationField = field
                    .getAnnotation(ConversationField.class);
            String[] conversations = conversationField.conversations();
            if (conversations.length == 0) {
                conversations = getConversationControllerConversations(clazz,
                        actionSuffix);
            }
            fieldConversations.addAll(Arrays.asList(conversations));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.ConversationField.conversations()

    public Collection<String> getConversations(Class<?> clazz, Field field) {
        Set<String> fieldConversations = new HashSet<String>();
        if (field.isAnnotationPresent(ConversationField.class)) {
            ConversationField conversationField = field
                    .getAnnotation(ConversationField.class);
            String[] conversations = conversationField.conversations();
            if (conversations.length == 0) {
                conversations = getConversationsWithInheritance(clazz,
                        actionSuffix);
            }
            fieldConversations.addAll(Arrays.asList(conversations));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.EndConversation.conversations()

    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

Examples of com.google.code.rees.scope.conversation.annotations.EndConversation.conversations()

    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

Examples of com.google.code.rees.scope.conversation.annotations.EndConversation.conversations()

        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)));
View Full Code Here

Examples of com.google.code.rees.scope.conversation.annotations.EndConversation.conversations()

    public Collection<String> getEndConversations(Class<?> clazz, Method method) {
        Set<String> methodConversations = new HashSet<String>();
        if (method.isAnnotationPresent(EndConversation.class)) {
            EndConversation conversationmethod = method
                    .getAnnotation(EndConversation.class);
            String[] conversations = conversationmethod.conversations();
            if (conversations.length == 0) {
                conversations = getConversationControllerConversations(clazz,
                        actionSuffix);
            }
            methodConversations.addAll(Arrays.asList(conversations));
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.