|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.util.SpringContextInstanceFactory
public class SpringContextInstanceFactory
Implementation tied to Spring.
Constructor Summary | |
---|---|
SpringContextInstanceFactory()
|
Method Summary | ||
---|---|---|
|
getInstance(Class<T> clazz)
Gets an instance of a class. |
|
Object |
getInstance(String className)
Get an instance of a class. |
|
Object |
getInstance(String className,
ClassLoader classLoader)
Get an instance of a class from a specific classloader. |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringContextInstanceFactory()
Method Detail |
---|
public Object getInstance(String className) throws ClassNotFoundException
InstanceFactory
getInstance
in interface InstanceFactory
className
- name of class.
ClassNotFoundException
- if the class does not exist.public Object getInstance(String className, ClassLoader classLoader) throws ClassNotFoundException
InstanceFactory
getInstance
in interface InstanceFactory
className
- name of class.classLoader
- class loader.
ClassNotFoundException
- if the class does not exist.public <T> T getInstance(Class<T> clazz)
InstanceFactory
getInstance
in interface InstanceFactory
T
- type of class.clazz
- class.
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |