jp.sourceforge.livez.util
クラス SpringUtils

java.lang.Object
  上位を拡張 jp.sourceforge.livez.util.SpringUtils

public final class SpringUtils
extends Object

Live Z の Spring Framework 用のユーティリティクラスです。

作成者:
杉澤 浩二

メソッドの概要
static Object getBean(BeanFactory factory, String id)
          指定された BeanFactory から指定されたビーンIDに一致するオブジェクトを返します。
static Object getRequiredBean(BeanFactory factory, String id)
          指定された BeanFactory から指定されたビーンIDに一致するオブジェクトを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getRequiredBean

public static Object getRequiredBean(BeanFactory factory,
                                     String id)
                              throws BeansException
指定された BeanFactory から指定されたビーンIDに一致するオブジェクトを返します。 BeanFactory が null の場合は null を返します。

パラメータ:
factory - BeanFactory
id - ビーンID
戻り値:
オブジェクト又は null
例外:
BeansException - 指定されたビーンIDが見つからない場合

getBean

public static Object getBean(BeanFactory factory,
                             String id)
指定された BeanFactory から指定されたビーンIDに一致するオブジェクトを返します。 BeanFactory が null の場合や指定されたビーンIDが見つからない場合は null を返します。

パラメータ:
factory - BeanFactory
id - ビーンID
戻り値:
オブジェクト又は null


Copyright © 2005-2006 Kouji Sugisawa. All rights reserved.