Option |
Description |
Default |
Source folder |
Enter a source folder for the new class. Either type a valid
source folder path or click Browse to select a source
folder via a dialog. |
The source folder of the element that was selected when the
wizard was started. |
Package |
Enter a package to contain the new class. Either type a
valid package name or click Browse to select a package via
a dialog. |
The package of the element that was selected when the wizard
has been started. |
Proxy class name |
Type a name for the new proxy class. |
<Proxy> |
Modifiers |
Select one or more access modifiers for the new class.
- public (uncheck for default visibility)
- abstract
- final
|
public |
Superclass |
Type or click Browse to
select a superclass for this class. |
<java.lang.Object> |
Subject type |
Type or click Browse to
select the class or interface for which the proxy will act as surrogate. |
The type or the primary type of the compilation unit that
was selected when the wizard was started |
Subject field name |
Type or select the name of the field that will contain the
instance of the subject class. |
<subject> |
Proxy should be immutable |
Determines whether the proxy will be immutable. |
<true> |
Implement interfaces of the subject class |
Determines whether the interfaces of the subject class will
be implemented. |
<true> |
Implement selected public methods of the subject class |
Determines whether the selected public methods of the
subject class will be implemented. |
<false> |
Proxy is applicable whenever there is a need for a more versatile or sophisticated
reference to an object than a simple pointer. Here are several common situations in which
the Proxy pattern is applicable: