| java.lang.Object uk.org.ponder.rsac.GlobalBeanAccessor
GlobalBeanAccessor | public class GlobalBeanAccessor (Code) | | Provides a global point of access to application-scope beans, bound to the
current thread. This is for use only in extreme emergencies - it
represents a terrible architectural risk. (In RSF it is used to allow
ViewParameters, which are tiny, uniquitous objects, to clone themselves).
Bean names should never ordinarily occur in Java code!
author: Antranig Basman (amb26@ponder.org.uk) |
Method Summary | |
public static void | endRequest() | public static Object | getBean(String name) Returns the (application-scope) bean with the given name, bound to
the context for the current thread. | public static Object | getRequestBean(String name) Returns the request-scope bean with the given name, bound to the
standard RSAC locator within the application context bound to the
current thread. | public static void | startRequest(ApplicationContext context) |
endRequest | public static void endRequest()(Code) | | |
getBean | public static Object getBean(String name)(Code) | | Returns the (application-scope) bean with the given name, bound to
the context for the current thread. Only use this method in a genuine
emergency!
|
getRequestBean | public static Object getRequestBean(String name)(Code) | | Returns the request-scope bean with the given name, bound to the
standard RSAC locator within the application context bound to the
current thread. Only use this method in a genuine emergency!
|
startRequest | public static void startRequest(ApplicationContext context)(Code) | | |
|
|