|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Target(value={}) @Retention(value=RUNTIME) public interface WLInitParam
The WLInitParam annotation is used within the context of the WLServlet or
WLFilter annotations to declare the 'init-param' attributes
for the servlet
and filter
elements of the web.xml descriptor.
Example:
initParams = {@WLInitParam(name="one", value="1"), @WLInitParam(name="two", value="2")}
Annotating a Servlet or Filter class with the above annotation is equivalent to declaring the following in the web.xml descriptor:
. . . <init-param> <param-name>one</param-name> <param-value>1</param-value> </init-param> <init-param> <param-name>two</param-name> <param-value>2</param-value> </init-param> . . .
Method Summary | |
---|---|
String |
name()
The init parameter name. |
String |
value()
The init parameter value. |
Methods inherited from interface java.lang.annotation.Annotation |
---|
annotationType, equals, hashCode, toString |
Method Detail |
---|
String name()
String value()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs100 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |