Example of extending proxy objects
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Example of extending proxy objects
For the Java client, ProxyGen generates two class files for each object. One contains the implementation, and the other is a delegating class that just calls this implementation class. The Java client code accesses the delegating classes. The delegating classes are created so the Java client is not exposed to implementation details of the proxy. These delegating classes are available for inheritance in Java while the implementation classes are final and cannot be extended.
For example, if we have an Account AppObject
and a Tax SubAppObject, ProxyGen generates the
implementation classes AccountImpl.java and TaxImpl.java and
the delegating classes Account.java and Tax.java.
The following table shows a skeleton of the Account delegating
class.
Example: Delegating class
|
Note the protected member variable m_accountImpl.
If a SubAppObject or a ProcObject is created, this variable must be passed to its
constructor.
The following example shows the constructor in the Tax class.
Example: SubAppObject/ProcObject constructor
|
The member variables are protected rather than
private, to allow a Java client to extend these classes.
The following example shows how a client might extend the Account
and Tax classes.
Example: Class extensions
|