|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.framework.container.cooldeploy.CoolComponentAutoRegister
NamingConventionに一致するコンポーネントを自動登録するクラスです。
| 入れ子クラスの概要 | |
protected class |
CoolComponentAutoRegister.CodeSourceFileStrategy
OC4J固有の code-source:プロトコルで表現されるURLをサポートするストラテジです。 |
protected class |
CoolComponentAutoRegister.FileSystemStrategy
|
protected class |
CoolComponentAutoRegister.JarFileStrategy
|
protected static interface |
CoolComponentAutoRegister.Strategy
|
protected class |
CoolComponentAutoRegister.ZipFileStrategy
WebLogic固有の zip:プロトコルで表現されるURLをサポートするストラテジです。 |
| フィールドの概要 | |
static String |
container_BINDING
BINDINGアノテーションの定義です。 |
static String |
INIT_METHOD
INIT_METHODアノテーションの定義です。 |
| コンストラクタの概要 | |
CoolComponentAutoRegister()
デフォルトのコンストラクタです。 |
|
| メソッドの概要 | |
protected void |
addStrategy(String protocol,
CoolComponentAutoRegister.Strategy strategy)
|
protected ComponentDef |
createComponentDef(Class componentClass)
|
S2Container |
getContainer()
コンテナを返します。 |
ComponentCreator[] |
getCreators()
クリエータを返します。 |
NamingConvention |
getNamingConvention()
NamingConventionを返します。 |
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)
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
| コンストラクタの詳細 |
public CoolComponentAutoRegister()
| メソッドの詳細 |
public S2Container getContainer()
public void setContainer(S2Container container)
container - public Map getStrategies()
protected CoolComponentAutoRegister.Strategy getStrategy(String protocol)
protected void addStrategy(String protocol,
CoolComponentAutoRegister.Strategy strategy)
public ComponentCreator[] getCreators()
public void setCreators(ComponentCreator[] creators)
creators - public NamingConvention getNamingConvention()
public void setNamingConvention(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 内の processClassprotected ComponentDef createComponentDef(Class componentClass)
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||