コマンドは、クラス CacheableCommandImpl の拡張によってインプリメントされます。 このクラスは、CacheableCommand インターフェースをインプリメントするクラスです。
CacheableCommandImpl クラスは、 例えば、 戻り値の設定など、CacheableCommand インターフェースのいくつかのメソッドのインプリメンテーションを提供する抽象クラスです。 このクラスは、例えば、コマンドの実行方法など、 アプリケーションがインプリメントする必要がある追加メソッドを宣言します。
... import com.ibm.websphere.command.*; public class MyCommandImpl extends CacheableCommandImpl implements MyCommand { // Set instance variables here ... // Implement methods in the MyCommand interface ... // Implement abstract methods in the CacheableCommandImpl class ... }