|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.uruma.rcp.core.UrumaServiceImpl
public class UrumaServiceImpl
UrumaService
の実装クラスです。
本クラスは、 UrumaServiceFactory
によって、Uruma アプリケーション毎に固有のインスタンスが生成されます。
フィールドの概要 | |
---|---|
protected ClassLoader |
appClassLoader
|
protected ApplicationContext |
applicationContext
|
protected S2Container |
container
|
protected IContributor |
contributor
|
protected String |
defaultContextId
|
protected List<Extension> |
extensions
|
protected ClassLoader |
oldClassLoader
|
protected String |
pluginId
|
protected Bundle |
targetBundle
|
protected ViewTemplateLoader |
templateLoader
|
protected TemplateManager |
templateManager
|
protected ClassLoader |
urumaClassLoader
|
protected WindowContext |
windowContext
|
protected WorkbenchComponent |
workbenchComponent
|
コンストラクタの概要 | |
---|---|
UrumaServiceImpl(Bundle targetBundle)
UrumaServiceImpl を構築します。 |
メソッドの概要 | |
---|---|
protected ClassLoader |
activateUrumaApplication(Bundle bundle)
指定したバンドルをアクティベートします。 |
protected Template |
createDummyWorkbenchTemplate()
|
String |
createRcpId(String id)
画面コンポーネントのIDをRCP上のIDに変換します。 |
protected String |
findFirstClassName(Bundle bundle)
Bundle に含まれるクラスファイルのうち、最初に見つかった一つのクラス名を返します。 |
ClassLoader |
getAppClassLoader()
Urumaアプリケーションバンドルのクラスローダを返します。 |
CommandRegistry |
getCommandRegistry()
CommandRegistry のインスタンスを返します。 |
S2Container |
getContainer()
S2Container のインスタンスを返します。 |
String |
getDefaultContextId()
Uruma アプリケーションのためのデフォルトコンテクスト ID を返します。 |
Extension |
getExtension(String point)
指定した名前の拡張ポイントを返します。 |
List<Extension> |
getExtensions()
現在登録されている拡張ポイントのリストを返します。 |
String |
getLocalId(String rcpId)
RCP上のIDから画面コンポーネントのIDを取得します。 |
String |
getPluginId()
現在のプラグイン ID を返します。 |
Template |
getTemplate(String path)
指定されたパスの画面定義XMLを読み込み、 Template オブジェクトを生成します。 |
IWorkbench |
getWorkbench()
IWorkbench のインスタンスを返します。 |
WorkbenchComponent |
getWorkbenchComponent()
WorkbenchComponent を返します。 |
WindowContext |
getWorkbenchWindowContext()
ワークベンチウィンドウに対応する WindowContext を返します。 |
protected void |
initialize()
初期化処理を行います。 |
protected void |
initS2Container()
S2Container の初期化を行います。 |
protected void |
prepareS2Components()
|
protected void |
registAutoRegister(S2Container container)
|
protected void |
registerExtensions()
拡張ポイントの設定を行います。 |
void |
restoreClassLoader()
直前に使用していたクラスローダに切り替えます。 |
protected void |
setupContexts()
|
protected void |
setupContributor()
|
protected void |
switchClassLoader(ClassLoader loader)
|
void |
switchToAppClassLoader()
コンテクストクラスローダを Uruma アプリケーションのクラスローダに切り替えます。 |
void |
switchToUrumaClassLoader()
コンテクストクラスローダを Uruma バンドルのクラスローダに切り替えます。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected Bundle targetBundle
protected ClassLoader urumaClassLoader
protected ClassLoader appClassLoader
protected ClassLoader oldClassLoader
protected IContributor contributor
protected String pluginId
protected S2Container container
protected TemplateManager templateManager
protected ViewTemplateLoader templateLoader
protected ApplicationContext applicationContext
protected WindowContext windowContext
protected WorkbenchComponent workbenchComponent
protected List<Extension> extensions
protected String defaultContextId
コンストラクタの詳細 |
---|
public UrumaServiceImpl(Bundle targetBundle)
UrumaServiceImpl
を構築します。
targetBundle
- ターゲットバンドルメソッドの詳細 |
---|
protected void initialize()
protected void registerExtensions()
protected ClassLoader activateUrumaApplication(Bundle bundle)
bundle
- Urumaアプリケーションを含むバンドル
protected String findFirstClassName(Bundle bundle)
Bundle
に含まれるクラスファイルのうち、最初に見つかった一つのクラス名を返します。
クラスはバンドルのシンボリックネームが表すパッケージ配下を検索します。
bundle
- Bundle
オブジェクト
null
。protected void initS2Container() throws ClassNotFoundException
S2Container
の初期化を行います。
ClassNotFoundException
protected void prepareS2Components()
protected void registAutoRegister(S2Container container) throws ClassNotFoundException
ClassNotFoundException
protected void switchClassLoader(ClassLoader loader)
protected void setupContributor()
protected void setupContexts()
protected Template createDummyWorkbenchTemplate()
public String getPluginId()
UrumaService
の記述:
UrumaService
内の getPluginId
public String createRcpId(String id)
UrumaService
の記述:
【例】プラグインID: org.seasar.uruma.example
、コンポーネントID:
button
の場合、本メソッドの戻り値は、org.seasar.uruma.example.button
となります。
UrumaService
内の createRcpId
id
- 画面コンポーネントのID
public String getLocalId(String rcpId)
UrumaService
の記述:
UrumaService
内の getLocalId
rcpId
- RCP上のID
UrumaService.createRcpId(String)
public Template getTemplate(String path)
UrumaService
の記述: Template
オブジェクトを生成します。
UrumaService
内の getTemplate
path
- 画面定義XMLのパス
Template
オブジェクトpublic IWorkbench getWorkbench()
UrumaService
の記述: IWorkbench
のインスタンスを返します。
UrumaService
内の getWorkbench
IWorkbench
のインスタンスpublic WorkbenchComponent getWorkbenchComponent()
UrumaService
の記述: WorkbenchComponent
を返します。
UrumaService
内の getWorkbenchComponent
WorkbenchComponent
オブジェクトpublic List<Extension> getExtensions()
UrumaService
の記述:
UrumaService
内の getExtensions
public Extension getExtension(String point)
UrumaService
の記述:
UrumaService
内の getExtension
point
- 拡張ポイントの名称
null
。public WindowContext getWorkbenchWindowContext()
UrumaService
の記述: WindowContext
を返します。
UrumaService
内の getWorkbenchWindowContext
WindowContext
public S2Container getContainer()
UrumaService
の記述: S2Container
のインスタンスを返します。
UrumaService
内の getContainer
S2Container
のインスタンスpublic ClassLoader getAppClassLoader()
UrumaService
の記述:
UrumaService
内の getAppClassLoader
public void switchToAppClassLoader()
UrumaService
の記述:
UrumaService
内の switchToAppClassLoader
public void switchToUrumaClassLoader()
UrumaService
の記述:
UrumaService
内の switchToUrumaClassLoader
public void restoreClassLoader()
UrumaService
の記述: UrumaService.switchToUrumaClassLoader()
メソッドまたは、
UrumaService.switchToAppClassLoader()
メソッド実行前のクラスローダに切り替えます。
UrumaService
内の restoreClassLoader
public CommandRegistry getCommandRegistry()
UrumaService
の記述: CommandRegistry
のインスタンスを返します。
UrumaService
内の getCommandRegistry
public String getDefaultContextId()
UrumaService
の記述: <プラグインID>.context
となります。
UrumaService
内の getDefaultContextId
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |