|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.context.AbstractApplication
public abstract class AbstractApplication
Abstract application based on a Spring application context.
| Constructor Summary | |
|---|---|
AbstractApplication()
|
|
| Method Summary | ||
|---|---|---|
|
getBean(Class<T> idClass)
Gets a bean from the application, using a class as an identifier. |
|
Object |
getBean(String id)
Gets a bean from the application. |
|
boolean |
isDefined(Class<?> idClass)
Checks if a bean is defined in the application, using a class as an identifier. |
|
boolean |
isDefined(String id)
Checks if a bean is defined in the application |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.context.Application |
|---|
start |
| Constructor Detail |
|---|
public AbstractApplication()
| Method Detail |
|---|
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic <T> T getBean(Class<T> idClass)
T - Type of the beanidClass - Class as an ID
public boolean isDefined(Class<?> idClass)
idClass - Class as an ID
true if the bean is definedpublic boolean isDefined(String id)
id - Bean ID
true if the bean is definedpublic Object getBean(String id)
id - Bean ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||