Package com.google.code.rees.scope.conversation.annotations

Examples of com.google.code.rees.scope.conversation.annotations.BeginConversation


    @Override
    public Collection<String> getBeginConversations(Class<?> clazz, Method method) {
        Set<String> methodConversations = new HashSet<String>();
        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method.getAnnotation(BeginConversation.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("begin")) {
            methodConversations.addAll(Arrays.asList(getConversationsWithoutInheritance(clazz, actionSuffix)));
View Full Code Here


    @Override
    public Collection<String> getBeginConversations(Class<?> clazz, Method method) {
        Set<String> methodConversations = new HashSet<String>();
        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method.getAnnotation(BeginConversation.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("begin")) {
            methodConversations.addAll(Arrays.asList(getConversationsWithoutInheritance(clazz, actionSuffix)));
View Full Code Here

            Method method) {
        Set<String> methodConversations = new HashSet<String>();

        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method
                    .getAnnotation(BeginConversation.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

    @Override
    public Collection<String> getBeginConversations(Class<?> clazz,
            Method method) {
        Set<String> methodConversations = new HashSet<String>();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method
                    .getAnnotation(BeginConversation.class);
            String[] conversations = conversationmethod.conversations();
            if (conversations.length == 0) {
                conversations = getConversationControllerConversations(clazz,
                        actionSuffix);
            }
            methodConversations.addAll(Arrays.asList(conversations));
View Full Code Here

                        }
                       
                        //yeah this code just got placed here because it was easy - again, this class and the arbitrator just need overhauling (but thats a lot of work!)
                        long maxIdleTime = this.maxIdleTimeMillis;
                    if (method.isAnnotationPresent(BeginConversation.class)) {
                      BeginConversation beginConversation = method.getAnnotation(BeginConversation.class);
                      maxIdleTime = beginConversation.maxIdleTimeMillis();
                    }
                   
                    if (LOG.isDebugEnabled()) {
                            LOG.debug("Adding method " + methodName + " as a Begin Action to ConversationConfiguration for Conversation " + conversation + " with a timeout of " + maxIdleTime / 1000 + " seconds.");
                        }
View Full Code Here

            Method method) {
        Set<String> methodConversations = new HashSet<String>();

        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method
                    .getAnnotation(BeginConversation.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

                        }
                       
                        //yeah this code just got placed here because it was easy - again, this class and the arbitrator just need overhauling (but thats a lot of work!)
                        long maxIdleTime = this.maxIdleTimeMillis;
                    if (method.isAnnotationPresent(BeginConversation.class)) {
                      BeginConversation beginConversation = method.getAnnotation(BeginConversation.class);
                      maxIdleTime = beginConversation.maxIdleTimeMillis();
                    }
                        configuration.addBeginAction(methodName, maxIdleTime);
                    }
                }
               
View Full Code Here

                        }
                       
                        //yeah this code just got placed here because it was easy - again, this class and the arbitrator just need overhauling (but thats a lot of work!)
                        long maxIdleTime = ConversationConstants.DEFAULT_CONVERSATION_MAX_IDLE_TIME;
                    if (method.isAnnotationPresent(BeginConversation.class)) {
                      BeginConversation beginConversation = method.getAnnotation(BeginConversation.class);
                      maxIdleTime = beginConversation.maxIdleTimeMillis();
                    }
                        configuration.addBeginAction(methodName, maxIdleTime);
                    }
                }
               
View Full Code Here

  @Override
  public Collection<String> getBeginConversations(Class<?> clazz, Method method) {
    Set<String> methodConversations = new HashSet<String>();
    if (method.isAnnotationPresent(BeginConversation.class)) {
      BeginConversation conversationmethod = method.getAnnotation(BeginConversation.class);
      String[] conversations = conversationmethod.conversations();
      if (conversations.length == 0) {
        conversations = getConversationControllerConversations(clazz, actionSuffix);
      }
      methodConversations.addAll(Arrays.asList(conversations));
    } else if (method.getName().startsWith("begin")) {
View Full Code Here

    @Override
    public Collection<String> getBeginConversations(Class<?> clazz, Method method) {
        Set<String> methodConversations = new HashSet<String>();
        Class<?> declaringClass = method.getDeclaringClass();
        if (method.isAnnotationPresent(BeginConversation.class)) {
            BeginConversation conversationmethod = method.getAnnotation(BeginConversation.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("begin")) {
            methodConversations.addAll(Arrays.asList(getConversationsWithoutInheritance(clazz, actionSuffix)));
View Full Code Here

TOP

Related Classes of com.google.code.rees.scope.conversation.annotations.BeginConversation

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.