private boolean shouldWrapMethodCall ( String methodName ) { if ( methodList == null ) { return true ; // Wrap all by default } if ( methodList . contains ( methodName ) ) { return true ; //Wrap a specific method } // If I get to this point, I should not wrap the call. return false ; }
Checks if the method being invoked should be wrapped by a service . It looks the method name up in the methodList . If its in the list then the method should be wrapped . If the list is null then all methods are wrapped .