1 /* 2 * Copyright 2002-2007 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 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.wiring; 18 19 /** 20 * Strategy interface to be implemented by objects than can resolve bean name 21 * information, given a newly instantiated bean object. Invocations to the 22 * {@link #resolveWiringInfo} method on this interface will be driven by 23 * the AspectJ pointcut in the relevant concrete aspect. 24 * 25 * <p>Metadata resolution strategy can be pluggable. A good default is 26 * {@link ClassNameBeanWiringInfoResolver}, which uses the fully-qualified 27 * class name as bean name. 28 * 29 * @author Rod Johnson 30 * @since 2.0 31 * @see BeanWiringInfo 32 * @see ClassNameBeanWiringInfoResolver 33 * @see org.springframework.beans.factory.annotation.AnnotationBeanWiringInfoResolver 34 */ 35 public interface BeanWiringInfoResolver { 36 37 /** 38 * Resolve the BeanWiringInfo for the given bean instance. 39 * @param beanInstance the bean instance to resolve info for 40 * @return the BeanWiringInfo, or <code>null</code> if not found 41 */ 42 BeanWiringInfo resolveWiringInfo(Object beanInstance); 43 44 } 45