public void invoke()

in chatterbox-twitter/chatterbox-twitter-impl/src/main/java/org/apache/tomee/chatterbox/twitter/adapter/TwitterResourceAdapter.java [401:426]


        public void invoke(final Status status) {

            // wrapper object for logging purposes
            final TweetWrapper tweet = new TweetWrapper(status);

            // find matching method(s)

            final List<Method> matchingMethods = findMatchingMethods(clazz, status);

            if (matchingMethods == null || matchingMethods.size() == 0) {
                // log this
                LOGGER.log(Level.INFO, "No method to match " + tweet);
                return;
            }

            if (this.clazz.isAnnotationPresent(InvokeAllMatches.class)) {
                for (final Method method : matchingMethods) {
                    LOGGER.log(Level.INFO, "Invoking method " + method.toString() + " for " + tweet);
                    invoke(method, status);
                }
            } else {
                final Method method = matchingMethods.get(0);
                LOGGER.log(Level.INFO, "Invoking method " + method.toString() + " for " + tweet);
                invoke(method, status);
            }
        }