|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.util.SpringContextInstanceFactory
public class SpringContextInstanceFactory
Implementation tied to Spring.
| Constructor Summary | |
|---|---|
SpringContextInstanceFactory()
|
|
| Method Summary | ||
|---|---|---|
|
getInstance(java.lang.Class<T> clazz)
Gets an instance of a class. |
|
java.lang.Object |
getInstance(java.lang.String className)
Get an instance of a class. |
|
java.lang.Object |
getInstance(java.lang.String className,
java.lang.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 java.lang.Object getInstance(java.lang.String className)
throws java.lang.ClassNotFoundException
InstanceFactory
getInstance in interface InstanceFactoryclassName - name of class.
java.lang.ClassNotFoundException - if the class does not exist.
public java.lang.Object getInstance(java.lang.String className,
java.lang.ClassLoader classLoader)
throws java.lang.ClassNotFoundException
InstanceFactory
getInstance in interface InstanceFactoryclassName - name of class.classLoader - class loader.
java.lang.ClassNotFoundException - if the class does not exist.public <T> T getInstance(java.lang.Class<T> clazz)
InstanceFactory
getInstance in interface InstanceFactoryT - type of class.clazz - class.
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||