01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.springframework.beans.factory.support;
18:
19: import org.springframework.beans.factory.config.BeanPostProcessor;
20:
21: /**
22: * Post-processor callback interface for <i>merged</i> bean definitions at runtime.
23: * {@link BeanPostProcessor} implementations may implement this sub-interface in
24: * order to post-process the merged bean definition that the Spring BeanFactory
25: * uses to create a specific bean instance.
26: *
27: * <p>Note that the {@link #postProcessMergedBeanDefinition} method will be invoked
28: * for <i>every instance</code> of a bean. It may for example introspect the bean
29: * definition in order to prepare some cached metadata before post-processing
30: * actual instances of a bean. It is also allowed to modify the bean definition
31: * but <i>only</i> for bean definition properties which are actually intended
32: * for concurrent modification. Basically, this only applies to operations
33: * defined on the {@link RootBeanDefinition} itself but not to the properties
34: * of its base classes.
35: *
36: * @author Juergen Hoeller
37: * @since 2.5
38: */
39: public interface MergedBeanDefinitionPostProcessor extends
40: BeanPostProcessor {
41:
42: /**
43: * Post-process the given merged bean definition for the specified bean.
44: * @param beanDefinition the merged bean definition for the bean
45: * @param beanType the actual type of the managed bean instance
46: * @param beanName the name of the bean
47: */
48: void postProcessMergedBeanDefinition(
49: RootBeanDefinition beanDefinition, Class beanType,
50: String beanName);
51:
52: }
|