KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > kohsuke > stapler > StaplerProxy


1 package org.kohsuke.stapler;
2
3 /**
4  * If an object delegates all its UI processing to another object,
5  * it can implement this interface and return the designated object
6  * from the {@link #getTarget()} method.
7  *
8  * @author Kohsuke Kawaguchi
9  */

10 public interface StaplerProxy {
11     /**
12      * Returns the object that is responsible for processing web requests.
13      *
14      * @return
15      * If null is returned, it generates 404.
16      * If {@code this} object is returned, no further
17      * {@link StaplerProxy} look-up is done and {@code this} object
18      * processes the request.
19      */

20     Object JavaDoc getTarget();
21 }
22
Popular Tags