|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.opensuit.xml.spring.SpringBeans
@XmlElement public class SpringBeans
This class allows to use :
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.opensuit.xml.interfaces.IBeanProvider |
|---|
org.ow2.opensuit.xml.interfaces.IBeanProvider.UnresolvedBeanError |
| Constructor Summary | |
|---|---|
SpringBeans()
|
|
| Method Summary | |
|---|---|
String |
getBeanDescription(String name)
|
Type |
getBeanGenericType(String name)
Research method called in order to find the Type, of the
asked bean name provided in function parameter. |
List<String> |
getBeanNames()
|
Class<?> |
getBeanType(String name)
Research method called in order to find the type (wrapped in form of Class |
Object |
getBeanValue(javax.servlet.http.HttpServletRequest request,
String name)
Method called in order to retrieve the associated value for the asked bean name provided in function parameter. |
void |
initialize(org.ow2.opensuit.xmlmap.interfaces.IInitializationSupport initSupport,
org.ow2.opensuit.xmlmap.interfaces.IInstantiationContext instContext)
Initialization method called after instantiation, in order to perform initialize attributes and validation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringBeans()
| Method Detail |
|---|
public void initialize(org.ow2.opensuit.xmlmap.interfaces.IInitializationSupport initSupport,
org.ow2.opensuit.xmlmap.interfaces.IInstantiationContext instContext)
initialize in interface org.ow2.opensuit.xmlmap.interfaces.IInitializableinitSupport - IInitializationSupport interface allows to log validation
errors, and trigger dependent objects initializationinstContext - IInstantiationContext interface allows to instantiate an XML
document with external context (providing external ancestors)IInitializable.initialize(IInitializationSupport,
IInstantiationContext)
public Class<?> getBeanType(String name)
throws org.ow2.opensuit.xml.interfaces.IBeanProvider.UnresolvedBeanError
Class>, of the asked bean name provided
in function parameter. Can return null if the bean isn't
exist.
getBeanType in interface org.ow2.opensuit.xml.interfaces.IBeanProvidername - Represent the called bean name in Spring
Context
Class>
object) of asked bean
org.ow2.opensuit.xml.interfaces.IBeanProvider.UnresolvedBeanError - this means that the bean resolution failedIBeanProvider.getBeanType(String)
public Type getBeanGenericType(String name)
throws org.ow2.opensuit.xml.interfaces.IBeanProvider.UnresolvedBeanError
Type, of the
asked bean name provided in function parameter. Can return
null if the bean isn't exist. Unlike getBeanType method,
getBeanGenericType return the bean Type unwrapped (not
return Class> but Type)
getBeanGenericType in interface org.ow2.opensuit.xml.interfaces.IBeanProvidername - Represent the called bean name in Spring
Context
Type of asked bean
org.ow2.opensuit.xml.interfaces.IBeanProvider.UnresolvedBeanError - this means that the bean resolution failedIBeanProvider.getBeanGenericType(String)
public Object getBeanValue(javax.servlet.http.HttpServletRequest request,
String name)
throws Exception
name provided in function parameter. Can return
null if the bean isn't exist.
getBeanValue in interface org.ow2.opensuit.xml.interfaces.IBeanProviderrequest - Unused parametername - Represent the called bean name in Spring
Context
Integer,
String, DataSource ...
Exception - Can throws several types of exception, but one specifically
can be throw 'InvocationTargetException'.IBeanProvider.getBeanValue(HttpServletRequest,
String)public List<String> getBeanNames()
getBeanNames in interface org.ow2.opensuit.xml.interfaces.IBeanProviderpublic String getBeanDescription(String name)
getBeanDescription in interface org.ow2.opensuit.xml.interfaces.IBeanProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||