org.apache.wicket.spring
Class SpringBeanLocator
java.lang.Object
org.apache.wicket.spring.SpringBeanLocator
- All Implemented Interfaces:
- Serializable, IProxyTargetLocator, org.apache.wicket.util.io.IClusterable
public class SpringBeanLocator
- extends Object
- implements IProxyTargetLocator
Implementation of IProxyTargetLocator
that can locate beans within a spring application
context. Beans are looked up by the combination of name and type, if name is omitted only type is
used.
- Author:
- Igor Vaynberg (ivaynberg), Istvan Devai
- See Also:
- Serialized Form
SpringBeanLocator
public SpringBeanLocator(Class<?> beanType,
ISpringContextLocator locator)
- Constructor
- Parameters:
beanType
- bean classlocator
- spring context locator
SpringBeanLocator
public SpringBeanLocator(String beanName,
Class<?> beanType,
ISpringContextLocator locator)
- Constructor
- Parameters:
beanName
- bean namebeanType
- bean classlocator
- spring context locator
isSingletonBean
public boolean isSingletonBean()
- Returns:
- returns whether the bean (the locator is supposed to istantiate) is a singleton or
not
getBeanType
public Class<?> getBeanType()
- Returns:
- bean class this locator is configured with
locateProxyTarget
public Object locateProxyTarget()
- Specified by:
locateProxyTarget
in interface IProxyTargetLocator
- See Also:
IProxyTargetLocator.locateProxyTarget()
getBeanName
public final String getBeanName()
- Returns:
- bean name this locator is configured with
getSpringContextLocator
public final ISpringContextLocator getSpringContextLocator()
- Returns:
- context locator this locator is configured with
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.