core/src/main/java/org/springframework/security/access/method/MapBasedMethodSecurityMetadataSource.java
public void addSecureMethod(Class<?> javaType, Method method,
			List<ConfigAttribute> attr) {
		RegisteredMethod key = new RegisteredMethod(method, javaType);

		if (methodMap.containsKey(key)) {
			logger.debug("Method [" + method
					+ "] is already registered with attributes [" + methodMap.get(key)
					+ "]");
			return;
		}

		methodMap.put(key, attr);
	}
public void addSecureMethod(Class<?> javaType, Method method,
			List<ConfigAttribute> attr) {
		RegisteredMethod key = new RegisteredMethod(method, javaType);

		if (methodMap.containsKey(key)) {
			logger.debug("Method [" + method
					+ "] is already registered with attributes [" + methodMap.get(key)
					+ "]");
			return;
		}

		methodMap.put(key, attr);
	}
Adds configuration attributes for a specific method, for example where the method
has been matched using a pointcut expression. If a match already exists in the map
for the method, then the existing match will be retained, so that if this method is
called for a more general pointcut it will not override a more specific one which
has already been added.
<p>
This method should only be called during initialization of the {@code BeanFactory}.