| uk.org.ponder.rsac.RSACBeanLocator
All known Subclasses: uk.org.ponder.rsac.RSACBeanLocatorImpl,
RSACBeanLocator | public interface RSACBeanLocator (Code) | | The central class managing the Request Scope Application Context.
The principal method useful to users is getBeanLocator() which
returns a BeanLocator holding the request context for the current thread. For
each thread entering an RSAC request, it must call
startRequest() before acquiring any request beans, and
endRequest() at the end of its cycle (the latter is most
important).
|
Method Summary | |
public String[] | beanNamesForClass(Class clazz) Returns a list of bean names which are known to correspond to beans
implementing or derived from the supplied class. | public void | endRequest() Called at the end of a request. | public Class | getBeanClass(String beanname) Returns the class of this bean, if it can be statically determined,
null if it cannot (i.e. | public WriteableBeanLocator | getBeanLocator() This method gets a BeanLocator which is good just for the current request
scope. | public WriteableBeanLocator | getDeadBeanLocator() Scope of this BeanLocator is the same as previous, but it will NOT
auto-create beans that are not present. | public boolean | isStarted() Determines whether the container has already been started for the current
thread. | public void | startRequest() Starts the request-scope container for the current thread. |
RSAC_BEAN_LOCATOR_NAME | public static String RSAC_BEAN_LOCATOR_NAME(Code) | | The standard bean name for the RSACBeanLocator *
|
beanNamesForClass | public String[] beanNamesForClass(Class clazz)(Code) | | Returns a list of bean names which are known to correspond to beans
implementing or derived from the supplied class. RSAC has tried slightly
harder to resolve bean classes than Spring generally does, through walking
chains of factory-methods.
Parameters: clazz - A class or interface class to be searched for. A list of derived bean names. |
endRequest | public void endRequest()(Code) | | Called at the end of a request. I advise doing this in a finally block.
|
getBeanClass | public Class getBeanClass(String beanname)(Code) | | Returns the class of this bean, if it can be statically determined,
null if it cannot (i.e. this bean is the product of a
factory-method of a class which is not yet known)
Parameters: beanname - |
getBeanLocator | public WriteableBeanLocator getBeanLocator()(Code) | | This method gets a BeanLocator which is good just for the current request
scope. The ThreadLocal barrier has already been breached in the returned
object, and evaluation will proceed quickly.
|
getDeadBeanLocator | public WriteableBeanLocator getDeadBeanLocator()(Code) | | Scope of this BeanLocator is the same as previous, but it will NOT
auto-create beans that are not present.
|
isStarted | public boolean isStarted()(Code) | | Determines whether the container has already been started for the current
thread.
|
startRequest | public void startRequest()(Code) | | Starts the request-scope container for the current thread.
|
|
|