Turbine のサービス / Turbine Services

Services are singletons within the Turbine Framework which have pluggable implementation, and are capable of participating in the Turbine startup and shutdown. As Services are Singletons, there is only one instance of each service in the system. Memory or connections are allocated once only and the internal state is common to all requesting clients. Services can access ServletConfig at system startup time to process relative paths and similar functionality, they can also access RunData on the first Turbine doGet execution to get the environment Turbine is operating under and with. Services can also initialize themselves before they are requested by the client for the first time. A Service that is never used will not allocate resources to itself. A Service can also execute actions upon the system being shutdown, such as closing open connections. The Singleton pattern also allows for the Services to be accessed from anywhere within your code.

サービスは Turbine の起動と終了を有する接続可能な実装と Turbine フレームワークのシングルトンの 集まりです。 サービスとシングルトンとして、システム内には唯一のインスタンスしか生成されません。 メモリか接続が一度のみ配分された際には内部的な状態がリクエストを送信してくる すべてのクライアントに対して共通になります。 関連するパスそのような機能は、システム起動時刻に ServletConfig にアクセスするサービスに 同様に、最初に Turbine がオペレートされる doGet の実行時に RunData にアクセスすることが出来ます。  同様にサービスはまたクライアントに最初にリクエストされた場合には、自身を初期化することが出来ます。  二度と使用されないサービスはリソースを自分自身に割り当てることはありません。 サービスはシャットダウン中のシステムに対してコネクションを塞ぐなど、アクションを実行することが出来ます。  シングルトンのパターンはコード内のどこからでもアクセスされることが可能なコードに適用します。

The Life Cycle of a Service begins with the Services constructor. A Service does not do much in it's contructor. Especially it should not allocate any costly resources like large memory structure, DB or Network connections, etc. The Service may be in the properties file, but unless a client using the application needs the Service in question, there is no point starting the Service.

サービスのライフサイクルはサービスのコンストラクタにてはじまります。 サービスはコンストラクタ内にては多くを行いません。 特に大容量のメモリ構造、データベースやネットワークコネクションなどに 割り当てるべきではありません。 サービスはプロパティファイルにあり、アプリケーションの使用を行うクライアントは求められている サービスは、サービスを開始するポイントはありません。

The services available with Turbine can be found in the org.apache.turbine.services package. Please note that the [TODO]'s below simply mean that these services need more complete documentation, it does not mean that they are still waiting to be implemented.

サービスは Turbine の org.apache.turbine.services パッケージに見ることが出来ます。 [TODO] にあるそれらのサービスはもっと、完全なドキュメントを必要としており、 これらはまだ実装が行われているものではないことを記憶しておいてください。

  • アセンブラブローカーサービス / Assembler Broker Service
    Is the Service which allows assemblers such as Screens, Actions, Layout and Scheduled Jobs to be loaded.
    Screens、Actions、Layout と スケジュール化されたジョブのようなサービスは ロードを行われます。
  • キャッシュサービス / Cache Service
    Provides a persistant Object Storage mechanism within your application.
    永続的なオブジェクトのストレージメカニズムをアプリケーションに提供します。
  • Castor サービス / Castor Service
    Castor is a OR tool that is supported by Turbine. Castor は Turbine によってサポートされる OR ツールです。
  • コンポーネントサービス / Component Service
    Initializes external components which implement the lifecycle interface, e.g. Torque und Fulcrum.
  • (Torque や Flucrum のような)ライフサイクルインターフェースを実装する外部コンポーネントを 初期化します。
  • DB サービス / DB Service
    [TO DO (PoolBrokerService)] Is a common front end to all database systems. This service also provides the brokers for Connection Pooling and Database Map Objects.

  • [TO DO (プールブローカーサービス)] は共通のすべてのデータベースシステムに対してのフロントエンドです。このサービスは同様にコネクションプーリングとデータベースマップオブジェクトに対してブローカーを提供します
  • ファクトリサービス / Factory Service
    A Service for the instantiation of objects with either the specified loaders or default class loaders.

    特定のローダやデフォルトのクラスローダにオブジェクトの事例を上げて裏付ける
  • FreeMarker サービス / FreeMarker Service
    The FreeMarker Service is the set of classes that process FreeMarker files inside the Turbine Layout/Navigations and Screen structure.
    FreeMaker サービスは Turbine Layout 内部の Navigation / Screen FreeMaker ストラクチャを生成するクラスのセットです。
  • インテイクサービス / Intake Service
    A service that provides input validation along with a standard parameter naming framework.

  • フレームワークをネーミングする標準パラメータをサービスが提供する入力に有効にするものです。
  • JSP サービス / JSP Service
    The JSP Service is the set of classes that process JSP files inside the Turbine Layout/Navigations and Screen structure.

  • Turbine の Layout / Navigation / Screen 構造の中で、JSP サービスは JSP ファイルを生成するクラスのセットです。
  • 国際化サービス / Localization Service
    The single point of access to all localization resources.

    すべての国際化リソースにアクセスする単一のポイントです。
  • ロギングサービス / Logging Service
    The default Loggin implementation for Turbine, logging can be either through an explicite getLogger() method or by standard printing methods such as info or debug.

    Turbine のデフォルトのロギングの実装では、ロギングは明示的な getLogger() メソッド かもしくは、標準の infodebug などの print メソッドになります。
  • MIME タイプサービス / MimeType Service
    The service maintains the mappings between MIME types and corresponding file name extensions as well as between locales and character encoding.

    サービスはロケールやキャラクタエンコーディングのように MIME タイプと破損したファイル名エクステンションのマッピングを維持します。
  • ネーミングサービス / Naming Service
    Provides JNDI naming contexts.

    JNDI ネーミングコンテキストを提供します。
  • プールサービス / Pool Service
    A service for the pooling of instantiated Objects, allowing for the recycling and disposal of Objects in the pool.

    実例であるオブジェクトのプーリングのサービスであり、プール内のオブジェクトの再利用と使い捨て を適用します。
  • Pull サービス / Pull Service
    Manages the creation of application tools that are available to all templates in a Turbine application. The tools can have global scope, request scope, session scope or persistant scope within your application.

    Turbine アプリケーションのすべてのテンプレートに対して可能なアプリケーションツールの生成を管理します。 このツールはアプリケーションにてグローバルスコープ、リクエストスコープ、セッションスコープ、永続スコープを持つことが出来ます。
  • リソースサービス / Resources Service
    [TO DO (Configuration)] The Resources Service is the set of classes and the functionality that allows for the reading and acccessing data from within properties files.

    [TO DO (構成)] リソースサービスはプロパティファイルからの読み出しとデータアクセスのクラスと機能のセットです。
  • RunData サービス / RunData Service
    Is the Service which manages the higher level operations surrounding requests and responses.

    リクエストとレスポンスをとりかこむ高レベルの操作管理するサービスです。
  • スケジューラサービス / Scheduler Service
    This service manages the schedule queue giving Cron like functionality. The ScheduledJob can be stored in a database or a properties file.

    このサービスは Cron ライクな機能のスケジュールキューの管理を行います。 このスケジュールジョブはデータベースかもしくはプロパティファイルに格納されます。
  • セキュリティサービス / Security Service
    [TO DO] A service for the management of Users, Groups, Roles and Permissions in the system, allowing for those Objects to interact with either Database or LDAP backends. The service also allows for the security to be managed without a backend.

    [TO DO] ユーザ、グループ、ロール、権限をシステム内にて管理するサービスは、それらのオブジェクト データベースや LDAP バックエンドのいずれにも許容できます。 このサービスは同様に、バックエンドなしに管理されるセキュリティも許容します。
  • Servlet サービス / Servlet Service
    Encapsulates the information provided by the ServletContext API, and makes it available from anywhere in the code.

    ServletContext API によって供給される情報をカプセル化し、コード内のどこからでも使えるようにします。
  • テンプレートサービス / Template Service
    [TO DO] The Service for the mapping of templates to their screens and actions.

    [TO DO] マッピングするサービスは screen と action をテンプレート化します。
  • ユニーク ID サービス / Unique ID Service
    Allows for the creation of Context unique and pseudo random identifiers.

    コンテキストと、まがいもののランダムな識別子を生成をさせます。
  • アップロードサービス / Upload Service
    This service manages multipart/form-data POST requests, storing them temporarily in memory or locally. The resultant Objects can be manipulated through a FileItem Object.

    このサービスはメモリかローカルに一時的に保管されている multipart / form-data の POST リクエストを管理します。 結果として生じるオブジェクトは FileItem オブジェクトによって操作されます。
  • Velocity サービス / Velocity Service
    [TO DO] The service for the processing of Velocity Templates from within the Turbine Layout/Navigations and Screen structure.

    [TO DO] Turbine Layout / Navigation / Screen 構造にて Velocity テンプレートを生成するサービス。
  • WebMacro サービス / WebMacro Service
    [TO DO] The service for the processing of WebMacro Templates from within Turbine Layout/Navigations and Screen structure.

    [TO DO] Turbine Layout / Navigation / Screen 構造 から WebMacro テンプレートを生成するサービス。
  • XML-RPC サービス / XML-RPC Service
    This service manages xml-rpc calls to a remote Server.

    このサービスはリモートサーバに xml-rpc へのコールを管理します。
  • XSLT サービス / XSLT Service
    The service which is used to transform XML with an XSLT stylesheet.

    XML を XSLT スタイルシートで変換するサービス。

For more information on the Services Package, view the package.html Package Documentation in the Javadocs or in Turbine CVS.
サービスパッケージのさらなる情報につきましては、Javadoc か Turbine CVS の package.html パッケージドキュメンテーションを参照してください。