|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.container.cooldeploy.CoolComponentAutoRegister
NamingConvention
に一致するコンポーネントを自動登録するクラスです。
入れ子クラスの概要 | |
protected class |
CoolComponentAutoRegister.CodeSourceFileStrategy
OC4J固有の code-source: プロトコルで表現されるURLをサポートするストラテジです。 |
protected class |
CoolComponentAutoRegister.FileSystemStrategy
ファイルシステム用の CoolComponentAutoRegister.Strategy です。 |
protected class |
CoolComponentAutoRegister.JarFileStrategy
jarファイル用の CoolComponentAutoRegister.Strategy です。 |
protected static interface |
CoolComponentAutoRegister.Strategy
プロトコルに応じた自動登録を行なうストラテジです。 |
protected class |
CoolComponentAutoRegister.ZipFileStrategy
WebLogic固有の zip: プロトコルで表現されるURLをサポートするストラテジです。 |
フィールドの概要 | |
static String |
container_BINDING
Bindingアノテーションの定義です。 |
static String |
INIT_METHOD
InitMethodアノテーションの定義です。 |
protected Set |
registerdClasses
登録されたクラスを保持するためのセットです。 |
コンストラクタの概要 | |
CoolComponentAutoRegister()
CoolComponentAutoRegister を作成します。 |
メソッドの概要 | |
protected void |
addStrategy(String protocol,
CoolComponentAutoRegister.Strategy strategy)
CoolComponentAutoRegister.Strategy を追加します。 |
protected ComponentDef |
createComponentDef(Class componentClass)
ComponentDef を作成します。 |
S2Container |
getContainer()
S2Container を返します。 |
ComponentCreator[] |
getCreators()
ComponentCreator の配列を返します。 |
NamingConvention |
getNamingConvention()
NamingConvention を返します。 |
Map |
getStrategies()
登録されているストラテジを返します。 |
protected CoolComponentAutoRegister.Strategy |
getStrategy(String protocol)
CoolComponentAutoRegister.Strategy を返します。 |
void |
processClass(String packageName,
String shortClassName)
クラスを処理します。 |
void |
registerAll()
自動登録を行います。 |
void |
setContainer(S2Container container)
S2Container を設定します。 |
void |
setCreators(ComponentCreator[] creators)
ComponentCreator の配列を設定します。 |
void |
setNamingConvention(NamingConvention namingConvention)
NamingConvention を設定します。 |
protected void |
webSphereClassLoaderFix()
Jarファイルからコンポーネントの登録を行います。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final String INIT_METHOD
public static final String container_BINDING
protected Set registerdClasses
コンストラクタの詳細 |
public CoolComponentAutoRegister()
CoolComponentAutoRegister
を作成します。
メソッドの詳細 |
public S2Container getContainer()
S2Container
を返します。
S2Container
public void setContainer(S2Container container)
S2Container
を設定します。
container
- public Map getStrategies()
protected CoolComponentAutoRegister.Strategy getStrategy(String protocol)
CoolComponentAutoRegister.Strategy
を返します。
protocol
-
CoolComponentAutoRegister.Strategy
protected void addStrategy(String protocol, CoolComponentAutoRegister.Strategy strategy)
CoolComponentAutoRegister.Strategy
を追加します。
protocol
- strategy
- public ComponentCreator[] getCreators()
ComponentCreator
の配列を返します。
ComponentCreator
の配列public void setCreators(ComponentCreator[] creators)
ComponentCreator
の配列を設定します。
creators
- public NamingConvention getNamingConvention()
NamingConvention
を返します。
NamingConvention
public void setNamingConvention(NamingConvention namingConvention)
NamingConvention
を設定します。
namingConvention
- public void registerAll()
protected void webSphereClassLoaderFix()
WebSphere のクラスローダーはJarファイル中のディレクトリエントリをClassLoader#getResource()
で
返してくれないので、 S2のJarと同じ場所にあるJarファイルからコンポーネントの登録を行います。
public void processClass(String packageName, String shortClassName)
ClassTraversal.ClassHandler
の記述:
ClassTraversal.ClassHandler
内の processClass
packageName
- shortClassName
- protected ComponentDef createComponentDef(Class componentClass)
ComponentDef
を作成します。
componentClass
-
ComponentDef
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |