Skip to content

Commit

Permalink
Adjust the WOInjectServlet javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
hprange committed Jul 20, 2013
1 parent 2a4815f commit 0a0ce51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions src/main/java/com/woinject/servlet/WOInjectServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,20 @@
/**
* The <code>WOInjectServlet</code> initializes the WOInject framework in the
* context of servlet applications.
*
* <p>
* Add the following snippet into the web.xml:
*
* <p>
*
* <pre>
* <servlet>
* <servlet-name>WOInjectServlet</servlet-name>
* <servlet-class>com.woinject.servlet.WOInjectServlet</servlet-class>
* <load-on-startup>1</load-on-startup>
* </servlet>
* &lt;servlet&gt;
* &lt;servlet-name&gt;WOInjectServlet&lt;/servlet-name&gt;
* &lt;servlet-class&gt;com.woinject.servlet.WOInjectServlet&lt;/servlet-class&gt;
* &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
* &lt;/servlet&gt;
* </pre>
*
*
* @author <a href="mailto:[email protected]">Henrique Prange</a>
* @since 1.1
*/
public class WOInjectServlet extends HttpServlet {
private static Class<?> loadClass(ClassLoader loader, String classname, byte[] bytes) {
Expand All @@ -66,6 +68,12 @@ private static Class<?> loadClass(ClassLoader loader, String classname, byte[] b
return clazz;
}

/**
* Load the changed <code>_NSUtilities</code> class required by WOInject
* during the container initialization.
*
* @see javax.servlet.GenericServlet#init()
*/
@Override
public void init() throws ServletException {
super.init();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/woinject/servlet/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* This package contains features related to servlet environments.
*
* @since 1.0
* @since 1.1
*/
package com.woinject.servlet;

0 comments on commit 0a0ce51

Please sign in to comment.