org.seasar.uruma.binding.method
クラス EventListenerDef

java.lang.Object
  上位を拡張 org.seasar.uruma.binding.method.EventListenerDef

public class EventListenerDef
extends Object

EventListener アノテートされたメソッドを表すクラスです。

作成者:
y-komori

コンストラクタの概要
EventListenerDef(Method target, EventListener eventListener, AsyncMethod asyncMethod)
          EventListenerDef を構築します。
 
メソッドの概要
 AsyncMethod getAsyncMethod()
          AsyncMethod アノテーションを返します。
 String[] getId()
          対応するコンポーネントの ID を取得します。
 Method getTargetMethod()
          ターゲットメソッドの Method オブジェクトを取得します。
 EventListenerType getType()
          イベントの種類を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

EventListenerDef

public EventListenerDef(Method target,
                        EventListener eventListener,
                        AsyncMethod asyncMethod)
EventListenerDef を構築します。

パラメータ:
target - ターゲットメソッド
eventListener - EventListener
asyncMethod - AsyncMethod アノテーション
メソッドの詳細

getTargetMethod

public Method getTargetMethod()
ターゲットメソッドの Method オブジェクトを取得します。

戻り値:
ターゲットメソッドの Method オブジェクト

getId

public String[] getId()
対応するコンポーネントの ID を取得します。

戻り値:
対応するコンポーネントの ID

getType

public EventListenerType getType()
イベントの種類を返します。

戻り値:
イベントの種類

getAsyncMethod

public AsyncMethod getAsyncMethod()
AsyncMethod アノテーションを返します。

戻り値:
AsyncMethod アノテーション。アノテーションが存在しない場合は null


Copyright © 2006-2008 The Seasar Foundation. All Rights Reserved.