|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.rcp.core.UrumaServiceImpl
public class UrumaServiceImpl
UrumaService の実装クラスです。
本クラスは、 UrumaServiceFactory によって、Uruma アプリケーション毎に固有のインスタンスが生成されます。
| フィールドの概要 | |
|---|---|
protected static String |
APP_CLASSLOADER_PREFIX
|
protected ClassLoader |
appClassLoader
|
protected String |
appClassLoaderName
|
protected ApplicationContext |
applicationContext
|
protected S2Container |
container
|
protected IContributor |
contributor
|
protected String |
defaultContextId
|
protected List<Extension> |
extensions
|
protected ResourceBundle |
imageBundle
|
protected ClassLoader |
oldClassLoader
|
protected String |
pluginId
|
protected Bundle |
targetBundle
|
protected ViewTemplateLoader |
templateLoader
|
protected TemplateManager |
templateManager
|
protected static String |
URUMA_CLASSLOADER_NAME
|
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アプリケーションバンドルのクラスローダを返します。 |
Bundle |
getBundle()
Uruma アプリケーションのバンドルを返します。 |
CommandRegistry |
getCommandRegistry()
CommandRegistry のインスタンスを返します。 |
S2Container |
getContainer()
S2Container のインスタンスを返します。 |
String |
getDefaultContextId()
Uruma アプリケーションのためのデフォルトコンテクスト ID を返します。 |
Extension |
getExtension(String point)
指定した名前の拡張ポイントを返します。 |
List<Extension> |
getExtensions()
現在登録されている拡張ポイントのリストを返します。 |
ResourceBundle |
getImageBundle()
イメージ定義を保持する ResourceBundle を返します。 |
String |
getLocalId(String rcpId)
RCP上のIDから画面コンポーネントのIDを取得します。 |
String |
getPluginId()
現在のプラグイン ID を返します。 |
Template |
getTemplate(String path)
指定されたパスの画面定義XMLを読み込み、 Template オブジェクトを生成します。 |
ClassLoader |
getUrumaClassLoader()
Urumaバンドルのクラスローダを返します。 |
List<ViewPartComponent> |
getViewPartComponent()
ViewPartComponent のリストを返します。 |
IWorkbench |
getWorkbench()
IWorkbench のインスタンスを返します。 |
WorkbenchComponent |
getWorkbenchComponent()
WorkbenchComponent を返します。 |
WindowContext |
getWorkbenchWindowContext()
ワークベンチウィンドウに対応する WindowContext を返します。 |
protected void |
initialize()
初期化処理を行います。 |
protected void |
initS2Container()
S2Container の初期化を行います。 |
protected void |
prepareS2Components()
|
protected void |
registerExtensions()
拡張ポイントの設定を行います。 |
void |
restoreClassLoader()
直前に使用していたクラスローダに切り替えます。 |
protected void |
setupContexts()
|
protected void |
setupContributor()
|
protected void |
switchClassLoader(ClassLoader loader,
String loaderName)
|
void |
switchToAppClassLoader()
コンテクストクラスローダを Uruma アプリケーションのクラスローダに切り替えます。 |
void |
switchToUrumaClassLoader()
コンテクストクラスローダを Uruma バンドルのクラスローダに切り替えます。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final String URUMA_CLASSLOADER_NAME
protected static final String APP_CLASSLOADER_PREFIX
protected String appClassLoaderName
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
protected ResourceBundle imageBundle
| コンストラクタの詳細 |
|---|
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 の初期化を行います。
ClassNotFoundExceptionprotected void prepareS2Components()
protected void switchClassLoader(ClassLoader loader,
String loaderName)
protected void setupContributor()
protected void setupContexts()
protected Template createDummyWorkbenchTemplate()
public Bundle getBundle()
UrumaService の記述:
UrumaService 内の getBundleBundle オブジェクトpublic String getPluginId()
UrumaService の記述:
UrumaService 内の getPluginIdpublic String createRcpId(String id)
UrumaService の記述:
【例】プラグインID: org.seasar.uruma.example、コンポーネントID:
button の場合、本メソッドの戻り値は、
org.seasar.uruma.example.button となります。
UrumaService 内の createRcpIdid - 画面コンポーネントのID
public String getLocalId(String rcpId)
UrumaService の記述:
UrumaService 内の getLocalIdrcpId - RCP上のID
UrumaService.createRcpId(String)public Template getTemplate(String path)
UrumaService の記述: Template オブジェクトを生成します。
UrumaService 内の getTemplatepath - 画面定義XMLのパス
Template オブジェクトpublic IWorkbench getWorkbench()
UrumaService の記述: IWorkbench のインスタンスを返します。
UrumaService 内の getWorkbenchIWorkbench のインスタンスpublic WorkbenchComponent getWorkbenchComponent()
UrumaService の記述: WorkbenchComponent を返します。
UrumaService 内の getWorkbenchComponentWorkbenchComponent オブジェクトpublic List<Extension> getExtensions()
UrumaService の記述:
UrumaService 内の getExtensionspublic Extension getExtension(String point)
UrumaService の記述:
UrumaService 内の getExtensionpoint - 拡張ポイントの名称
null。public WindowContext getWorkbenchWindowContext()
UrumaService の記述: WindowContext を返します。
UrumaService 内の getWorkbenchWindowContextWindowContextpublic S2Container getContainer()
UrumaService の記述: S2Container のインスタンスを返します。
UrumaService 内の getContainerS2Container のインスタンスpublic ClassLoader getAppClassLoader()
UrumaService の記述:
UrumaService 内の getAppClassLoaderpublic ClassLoader getUrumaClassLoader()
UrumaService の記述:
UrumaService 内の getUrumaClassLoaderpublic void switchToAppClassLoader()
UrumaService の記述:
UrumaService 内の switchToAppClassLoaderpublic void switchToUrumaClassLoader()
UrumaService の記述:
UrumaService 内の switchToUrumaClassLoaderpublic void restoreClassLoader()
UrumaService の記述: UrumaService.switchToUrumaClassLoader() メソッドまたは、 UrumaService.switchToAppClassLoader() メソッド実行前のクラスローダに切り替えます。
UrumaService 内の restoreClassLoaderpublic CommandRegistry getCommandRegistry()
UrumaService の記述: CommandRegistry のインスタンスを返します。
UrumaService 内の getCommandRegistrypublic String getDefaultContextId()
UrumaService の記述: <プラグインID>.context となります。
UrumaService 内の getDefaultContextIdpublic ResourceBundle getImageBundle()
UrumaService の記述: ResourceBundle を返します。urumaImages.properties の内容となります。
UrumaService 内の getImageBundleResourceBundle オブジェクトpublic List<ViewPartComponent> getViewPartComponent()
UrumaService の記述: ViewPartComponent のリストを返します。
UrumaService 内の getViewPartComponentViewPartComponent オブジェクト
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||