@Deprecated public class ConfluenceSpringContextInstanceFactory extends Object implements com.atlassian.crowd.util.InstanceFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
SpringContextInstanceFactory, which rather than
asking the Spring context to instantiate a new bean of the desired type, it resolves a statically-configured
map of type names to bean names, and fetches that bean by name instead. The referenced beans must be prototype-scoped.
In addition to removing the voodoo caused by the use of SpringContextInstanceFactory,
it also allows us to fine-tune the wiring of the referenced beans.| Constructor and Description |
|---|
ConfluenceSpringContextInstanceFactory(Map<Class<?>,String> beanMapping)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
<T> T |
getInstance(Class<T> clazz)
Deprecated.
|
Object |
getInstance(String className)
Deprecated.
|
Object |
getInstance(String className,
ClassLoader classLoader)
Deprecated.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
public Object getInstance(String className) throws ClassNotFoundException
getInstance in interface com.atlassian.crowd.util.InstanceFactoryClassNotFoundExceptionpublic Object getInstance(String className, ClassLoader classLoader) throws ClassNotFoundException
getInstance in interface com.atlassian.crowd.util.InstanceFactoryClassNotFoundExceptionpublic <T> T getInstance(Class<T> clazz)
getInstance in interface com.atlassian.crowd.util.InstanceFactorypublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2003–2022 Atlassian. All rights reserved.