|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WrapperFactory
This class defines the api for a factory for creating new webmanager objects. A factory should have a public default contstructor and implements the setters for the servlet request and response that can be used for creating new instances. After the factory has been created and the setters have been invoked, then the createInstance method will be used for creating a new instance of a specified type, with the specified id.
| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM_ELEMENT_CLASSDECL
|
static java.lang.String |
CUSTOM_ELEMENT_TYPE
|
| Method Summary | |
|---|---|
java.lang.Object |
createInstance(java.lang.String targetClassname)
Create new object of class represented by the string. |
java.lang.Object |
getInstance(int id,
java.lang.Class targetClass)
Returns an instance of the specified class wrapping the specified id. |
java.lang.Object |
getInstance(int id,
java.lang.String targetClassname)
Returns an instance of the class represented by the given string. |
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Set the request object. |
void |
setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
Set the response object. |
| Field Detail |
|---|
static final java.lang.String CUSTOM_ELEMENT_TYPE
static final java.lang.String CUSTOM_ELEMENT_CLASSDECL
| Method Detail |
|---|
void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
request - The request for the factory, that can be used for creating new instances.void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
response - The request for the factory
java.lang.Object getInstance(int id,
java.lang.Class targetClass)
id - The identifier for the new instance.targetClass - The type of the new instance
java.lang.Object getInstance(int id,
java.lang.String targetClassname)
id - targetClassname -
java.lang.Object createInstance(java.lang.String targetClassname)
targetClassname -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||