org.seasar.framework.container.cooldeploy
クラス CoolComponentAutoRegister

java.lang.Object
  拡張org.seasar.framework.container.cooldeploy.CoolComponentAutoRegister
すべての実装インタフェース:
ClassTraversal.ClassHandler

public class CoolComponentAutoRegister
extends Object
implements ClassTraversal.ClassHandler

作成者:
higa

入れ子クラスの概要
protected  class CoolComponentAutoRegister.FileSystemStrategy
           
protected  class CoolComponentAutoRegister.JarFileStrategy
           
protected static interface CoolComponentAutoRegister.Strategy
           
protected  class CoolComponentAutoRegister.ZipFileStrategy
          WebLogic固有のzip:プロトコルで表現されるURLをサポートするストラテジです。
 
フィールドの概要
static String container_BINDING
           
static String INIT_METHOD
           
 
コンストラクタの概要
CoolComponentAutoRegister()
           
 
メソッドの概要
protected  void addStrategy(String protocol, CoolComponentAutoRegister.Strategy strategy)
           
protected  ComponentDef createComponentDef(Class componentClass)
           
 S2Container getContainer()
           
 ComponentCreator[] getCreators()
           
 NamingConvention getNamingConvention()
           
 Map getStrategies()
           
protected  CoolComponentAutoRegister.Strategy getStrategy(String protocol)
           
 void processClass(String packageName, String shortClassName)
           
 void registerAll()
           
 void setContainer(S2Container container)
           
 void setCreators(ComponentCreator[] creators)
           
 void setNamingConvention(NamingConvention namingConvention)
           
protected  void webSphereClassLoaderFix()
          Jarファイルからコンポーネントの登録を行う。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

INIT_METHOD

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

container_BINDING

public static final String container_BINDING
関連項目:
定数フィールド値
コンストラクタの詳細

CoolComponentAutoRegister

public CoolComponentAutoRegister()
メソッドの詳細

getContainer

public S2Container getContainer()

setContainer

public void setContainer(S2Container container)

getStrategies

public Map getStrategies()

getStrategy

protected CoolComponentAutoRegister.Strategy getStrategy(String protocol)

addStrategy

protected void addStrategy(String protocol,
                           CoolComponentAutoRegister.Strategy strategy)

getCreators

public ComponentCreator[] getCreators()

setCreators

public void setCreators(ComponentCreator[] creators)

getNamingConvention

public NamingConvention getNamingConvention()

setNamingConvention

public void setNamingConvention(NamingConvention namingConvention)

registerAll

public void registerAll()

webSphereClassLoaderFix

protected void webSphereClassLoaderFix()
Jarファイルからコンポーネントの登録を行う。

WebSphere のクラスローダーはJarファイル中のディレクトリエントリをClassLoader#getResource()で 返してくれないので、 S2のJarと同じ場所にあるJarファイルからコンポーネントの登録を行う。


processClass

public void processClass(String packageName,
                         String shortClassName)
定義:
インタフェース ClassTraversal.ClassHandler 内の processClass

createComponentDef

protected ComponentDef createComponentDef(Class componentClass)


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.