boolean
|
advisorsPreFiltered()
Return whether the Advisors returned by the subclass are pre-filtered
to match the bean's target class already, allowing the ClassFilter check
to be skipped when building advisors chains for AOP invocations.
|
Advisor[]
|
buildAdvisors(String beanName, Object[] specificInterceptors)
Determine the advisors for the given bean, including the specific interceptors
as well as the common interceptor, all adapted to the Advisor interface.
|
Object
|
createProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource)
Create an AOP proxy for the given bean.
|
void
|
customizeProxyFactory(ProxyFactory proxyFactory)
Subclasses may choose to implement this: for example,
to change the interfaces exposed.
|
Constructor[]<?>
|
determineCandidateConstructors(Class<?> beanClass, String beanName)
Determine the candidate constructors to use for the given bean.
|
abstract
Object[]
|
getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource customTargetSource)
Return whether the given bean is to be proxied, what additional
advices (e.g.
|
BeanFactory
|
getBeanFactory()
Return the owning BeanFactory.
|
Object
|
getCacheKey(Class<?> beanClass, String beanName)
Build a cache key for the given bean class and bean name.
|
TargetSource
|
getCustomTargetSource(Class<?> beanClass, String beanName)
Create a target source for bean instances.
|
Object
|
getEarlyBeanReference(Object bean, String beanName)
Obtain a reference for early access to the specified bean,
typically for the purpose of resolving a circular reference.
|
final
int
|
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
boolean
|
isFrozen()
Return whether the config is frozen, and no advice changes can be made.
|
boolean
|
isInfrastructureClass(Class<?> beanClass)
Return whether the given bean class represents an infrastructure class
that should never be proxied.
|
Object
|
postProcessAfterInitialization(Object bean, String beanName)
Create a proxy with the configured interceptors if the bean is
identified as one to proxy by the subclass.
|
boolean
|
postProcessAfterInstantiation(Object bean, String beanName)
Perform operations after the bean has been instantiated, via a constructor or factory method,
but before Spring property population (from explicit properties or autowiring) occurs.
|
Object
|
postProcessBeforeInitialization(Object bean, String beanName)
Apply this BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method).
|
Object
|
postProcessBeforeInstantiation(Class<?> beanClass, String beanName)
Apply this BeanPostProcessor before the target bean gets instantiated.
|
PropertyValues
|
postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)
Post-process the given property values before the factory applies them
to the given bean.
|
Class<?>
|
predictBeanType(Class<?> beanClass, String beanName)
|
void
|
setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)
Specify the AdvisorAdapterRegistry to use.
|
void
|
setApplyCommonInterceptorsFirst(boolean applyCommonInterceptorsFirst)
Set whether the common interceptors should be applied before bean-specific ones.
|
void
|
setBeanClassLoader(ClassLoader classLoader)
Callback that supplies the bean class loader to
a bean instance.
|
void
|
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.
|
void
|
setCustomTargetSourceCreators(TargetSourceCreator[] targetSourceCreators)
Set custom TargetSourceCreators to be applied in this order.
|
void
|
setFrozen(boolean frozen)
Set whether or not the proxy should be frozen, preventing advice
from being added to it once it is created.
|
void
|
setInterceptorNames(String[] interceptorNames)
Set the common interceptors.
|
final
void
|
setOrder(int order)
Set the ordering which will apply to this class's implementation
of Ordered, used when applying multiple BeanPostProcessors.
|
void
|
setProxyClassLoader(ClassLoader classLoader)
Set the ClassLoader to generate the proxy class in.
|
boolean
|
shouldProxyTargetClass(Class<?> beanClass, String beanName)
Determine whether the given bean should be proxied with its target
class rather than its interfaces.
|
boolean
|
shouldSkip(Class<?> beanClass, String beanName)
Subclasses should override this method to return true if the
given bean should not be considered for auto-proxying by this post-processor.
|
Object
|
wrapIfNecessary(Object bean, String beanName, Object cacheKey)
Wrap the given bean if necessary, i.e.
|