org.seasar.remoting.rmi.customizer
クラス RMIConnectorCustomizer

java.lang.Object
  拡張org.seasar.remoting.rmi.customizer.RMIConnectorCustomizer
すべての実装インタフェース:
ComponentCustomizer

public class RMIConnectorCustomizer
extends Object
implements ComponentCustomizer

SMART deployにおいてRMIConnectorImplのコンポーネント定義をカスタマイズするためのコンポーネントカスタマイザです。

作成者:
koichik

フィールドの概要
protected  String baseURLAsString
           
protected  boolean lookupOnStartup
           
protected static String RMI_CONNECTOR_CLASS_NAME
           
 
コンストラクタの概要
RMIConnectorCustomizer()
           
 
メソッドの概要
 void customize(ComponentDef componentDef)
          コンポーネント定義をカスタマイズします。
 void setBaseURLAsString(String baseURLAsString)
          ベースURLを文字列で設定します。
 void setLookupOnStartup(boolean lookupOnStartup)
          起動時にスタブをルックアップする場合はtrueを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

RMI_CONNECTOR_CLASS_NAME

protected static final String RMI_CONNECTOR_CLASS_NAME
関連項目:
定数フィールド値

baseURLAsString

protected String baseURLAsString

lookupOnStartup

protected boolean lookupOnStartup
コンストラクタの詳細

RMIConnectorCustomizer

public RMIConnectorCustomizer()
メソッドの詳細

setBaseURLAsString

public void setBaseURLAsString(String baseURLAsString)
ベースURLを文字列で設定します。

パラメータ:
baseURLAsString - ベースURLの文字列です

setLookupOnStartup

public void setLookupOnStartup(boolean lookupOnStartup)
起動時にスタブをルックアップする場合はtrueを設定します。

パラメータ:
lookupOnStartup - 起動時にスタブをルックアップする場合はtrue

customize

public void customize(ComponentDef componentDef)
コンポーネント定義をカスタマイズします。

RMIConnectorImplのコンポーネント定義にベースURLを文字列で設定するための プロパティ定義を追加します。 lookupOnStartupプロパティがtrueに設定されている場合は RMIConnectorImpl.lookup()を起動するための初期化メソッドインジェクション定義を追加します。

定義:
インタフェース ComponentCustomizer 内の customize


Copyright © 2005-2010 The Seasar Foundation. All Rights Reserved.