/** * Get the exclude list for an ejb * * @param ejbName the ejb name * @return the exclude list or null for no result * @throws IllegalArgumentException for a null ejb name */ public ExcludeListMetaData getExcludeListByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); if (methods == null) return null; MethodsMetaData ejbMethods = methods.getMethodsByEjbName(ejbName); if (ejbMethods == null) return null; ExcludeListMetaData result = clone(); result.setMethods(ejbMethods); return result; }
/** * Get the exclude list for an ejb * * @param ejbName the ejb name * @return the exclude list or null for no result * @throws IllegalArgumentException for a null ejb name */ public ExcludeListMetaData getExcludeListByEjbName(String ejbName) { if (ejbName == null) throw new IllegalArgumentException("Null ejbName"); if (methods == null) return null; MethodsMetaData ejbMethods = methods.getMethodsByEjbName(ejbName); if (ejbMethods == null) return null; ExcludeListMetaData result = clone(); result.setMethods(ejbMethods); return result; }
public void process(ExcludeListMetaData metaData, Method method) { DenyAll deny = finder.getAnnotation(method, DenyAll.class); if(deny == null) return; MethodsMetaData methods = metaData.getMethods(); if(methods == null) { methods = new MethodsMetaData(); metaData.setMethods(methods); } String ejbName = EjbNameThreadLocal.ejbName.get(); if(ejbName == null) ejbName = "*"; MethodMetaData mmd = ProcessorUtils.createMethod(ejbName, method); Descriptions descriptions = ProcessorUtils.getDescription("@DenyAll for: "+method); mmd.setDescriptions(descriptions); log.trace("add " + mmd); methods.add(mmd); }
public void process(ExcludeListMetaData metaData, Method method) { DenyAll deny = finder.getAnnotation(method, DenyAll.class); if(deny == null) return; MethodsMetaData methods = metaData.getMethods(); if(methods == null) { methods = new MethodsMetaData(); metaData.setMethods(methods); } String ejbName = EjbNameThreadLocal.ejbName.get(); if(ejbName == null) ejbName = "*"; MethodMetaData mmd = ProcessorUtils.createMethod(ejbName, method); Descriptions descriptions = ProcessorUtils.getDescription("@DenyAll for: "+method); mmd.setDescriptions(descriptions); log.trace("add " + mmd); methods.add(mmd); }
public void process(ExcludeListMetaData metaData, Method method) { DenyAll deny = finder.getAnnotation(method, DenyAll.class); if(deny == null) return; MethodsMetaData methods = metaData.getMethods(); if(methods == null) { methods = new MethodsMetaData(); metaData.setMethods(methods); } String ejbName = EjbNameThreadLocal.ejbName.get(); if(ejbName == null) ejbName = "*"; MethodMetaData mmd = ProcessorUtils.createMethod(ejbName, method); Descriptions descriptions = ProcessorUtils.getDescription("@DenyAll for: "+method); mmd.setDescriptions(descriptions); log.trace("add " + mmd); methods.add(mmd); }