|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.gwtspringrpc.http.SingletonServletConfigFactoryBean
public class SingletonServletConfigFactoryBean
This class is a factory bean for creating a singleton ServletConfig dynamic proxy instance. This allows the ServletConfig to be injected into singleton beans but still manage a separate instance per thread.
| Field Summary | |
|---|---|
private Log |
log
|
| Constructor Summary | |
|---|---|
SingletonServletConfigFactoryBean()
|
|
| Method Summary | |
|---|---|
Object |
getObject()
Returns a dynamic ServletConfig proxy delegating method requests to the instance stored in HTTPObjectHolder. |
Class |
getObjectType()
Retrieves the object type of ServletConfig. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invokes a method on the dynamic ServletConfig proxy. |
boolean |
isSingleton()
Returns true since this factory bean creates a singleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Log log
| Constructor Detail |
|---|
public SingletonServletConfigFactoryBean()
| Method Detail |
|---|
public Class getObjectType()
getObjectType in interface FactoryBeanpublic boolean isSingleton()
isSingleton in interface FactoryBean
public Object getObject()
throws Exception
getObject in interface FactoryBeanException - Any uncaught exceptions will cause the Spring
application context initialization to fail
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerproxy - This instancemethod - The method being invokedargs - The method arguments
Throwable - If an exception occurs invoking the method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||