【Adding Plugin and Module Resources】
Purpose of a Resource
"Resource"とは、プラグインが作動するために必要となるかも知れないnon-Java fileである。
可能なresourcesの例として
- Confluence内のプラグインmoduleのレイアウトやマクロのためのHTMLを生成したVelocity file。
- theme layout plugin moduleによって要求されたCSS file。
- layout plugin modureの内部から参照されたイメージ。
- マクロのhelp file
- A localisation property file
Resource定義はプラグインの一部、もしくは特別なプラグインmoduleの一部のいずれかになり得る。
Resource Definitionの例
(例が書かれている)
Resource Definitionのコンテンツ
Resourceはtypeとlocationの名前を持っている。
Resource Definitionはサーバのclasspathの中のそのresourceの位置へ任意のresource名を場所づける。
最終更新:2012年06月13日 12:44