com.atlassian.crowd.util
Class SpringContextInstanceFactory
java.lang.Object
com.atlassian.crowd.util.SpringContextInstanceFactory
- All Implemented Interfaces:
- InstanceFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class SpringContextInstanceFactory
- extends Object
- implements InstanceFactory, org.springframework.context.ApplicationContextAware
Implementation tied to Spring.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringContextInstanceFactory
public SpringContextInstanceFactory()
getInstance
public Object getInstance(String className)
throws ClassNotFoundException
- Specified by:
getInstance in interface InstanceFactory
- Throws:
ClassNotFoundException
getInstance
public Object getInstance(String className,
ClassLoader classLoader)
throws ClassNotFoundException
- Specified by:
getInstance in interface InstanceFactory
- Throws:
ClassNotFoundException
getInstance
public <T> T getInstance(Class<T> clazz)
- Specified by:
getInstance in interface InstanceFactory
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2016 Atlassian. All Rights Reserved.