/** * Test if method is synchronous. * @param m Method to test. * @return True, if is synchronous. */ public boolean isSynchronous(Method m) { return synchronous!=null && synchronous.contains(new MethodInfo(m)); }
/** * Test if method is replaced. * @param m Method to test. * @return True, if is replaced. */ public boolean isReplaced(Method m) { return replacements!=null && replacements.containsKey(new MethodInfo(m)); }
/** * Test if method is synchronous. * @param m Method to test. * @return True, if is synchronous. */ public boolean isSynchronous(Method m) { return synchronous!=null && synchronous.contains(new MethodInfo(m)); }
/** * Test if method is excluded. * @param m Method to test. * @return True, if is excluded. */ public boolean isExcluded(Method m) { return excluded!=null && excluded.contains(new MethodInfo(m)); }
/** * Test if method is replaced. * @param m Method to test. * @return True, if is replaced. */ public boolean isReplaced(Method m) { return replacements!=null && replacements.containsKey(new MethodInfo(m)); }
/** * Test if method is uncached. * @param m Method to test. * @return True, if is uncached. */ public boolean isUncached(Method m) { return uncached!=null && uncached.contains(new MethodInfo(m)); }
/** * Test if method is uncached. * @param m Method to test. * @return True, if is uncached. */ public boolean isUncached(Method m) { return uncached!=null && uncached.contains(new MethodInfo(m)); }
/** * Test if method is uncached. * @param m Method to test. * @return True, if is uncached. */ public boolean isUncached(Method m) { return uncached!=null && uncached.contains(new MethodInfo(m)); }
/** * Test if method is excluded. * @param m Method to test. * @return True, if is excluded. */ public boolean isExcluded(Method m) { return excluded!=null && excluded.contains(new MethodInfo(m)); }
/** * Test if method is synchronous. * @param m Method to test. * @return True, if is synchronous. */ public boolean isSynchronous(Method m) { return synchronous!=null && synchronous.contains(new MethodInfo(m)); }
/** * Test if method is secure. * @param m Method to test. * @return True, if is secure. */ public boolean isSecure(Method m) { return secure!=null && secure.contains(new MethodInfo(m)); }
/** * Get a replacements. */ public IMethodReplacement getMethodReplacement(Method method) { IMethodReplacement ret = null; if(replacements!=null) { ret = (IMethodReplacement)replacements.get(new MethodInfo(method)); } return ret; }
/** * Test if method is excluded. * @param m Method to test. * @return True, if is excluded. */ public boolean isExcluded(Method m) { return excluded!=null && excluded.contains(new MethodInfo(m)); }
/** * Test if method is secure. * @param m Method to test. * @return True, if is secure. */ public boolean isSecure(Method m) { return secure!=null && secure.contains(new MethodInfo(m)); }
/** * Test if method is replaced. * @param m Method to test. * @return True, if is replaced. */ public boolean isReplaced(Method m) { return replacements!=null && replacements.containsKey(new MethodInfo(m)); }
/** * Get a replacements. */ public IMethodReplacement getMethodReplacement(Method method) { IMethodReplacement ret = null; if(replacements!=null) { ret = (IMethodReplacement)replacements.get(new MethodInfo(method)); } return ret; }
/** * Test if method is secure. * @param m Method to test. * @return True, if is secure. */ public boolean isSecure(Method m) { return secure!=null && secure.contains(new MethodInfo(m)); }
/** * Notify registered listeners in case a method is called. */ public void notifyMethodListeners(boolean start, Object proxy, final Method method, final Object[] args, Object callid, ServiceInvocationContext context) { if(methodlisteners!=null) { doNotifyListeners(start, proxy, method, args, callid, context, methodlisteners.get(null)); doNotifyListeners(start, proxy, method, args, callid, context, methodlisteners.get((new MethodInfo(method)))); } }
/** * Notify registered listeners in case a method is called. */ public void notifyMethodListeners(boolean start, Object proxy, final Method method, final Object[] args, Object callid, ServiceInvocationContext context) { if(methodlisteners!=null) { doNotifyListeners(start, proxy, method, args, callid, context, methodlisteners.get(null)); doNotifyListeners(start, proxy, method, args, callid, context, methodlisteners.get((new MethodInfo(method)))); } }
/** * Create req service props. */ protected List<NFRPropertyInfo> createNFRProperties(NFRProperty[] nfrp) { List<NFRPropertyInfo> nfprops = new ArrayList<NFRPropertyInfo>(); for(NFRProperty prop: nfrp) { nfprops.add(new NFRPropertyInfo(prop.name(), new ClassInfo(prop.value().getName()), new MethodInfo(prop.methodname(), prop.methodparametertypes()))); } return nfprops; }