3.2.10. Conductor¶
本項では、intra-mart Accel Kaiden!におけるConductorについて解説します。
3.2.10.1. コンダクターとは?¶
intra-mart Accel Kaiden!におけるコンダクターとは、複数の画面から呼び出されるビジネスロジック処理のAPIを提供しています。intra-mart Accel Kaiden!のコンダクターでは、前項のManagerクラスを複数呼び出し、共通処理を実装しています。コラム
コンダクタークラスの詳細は『intra-mart Accel Kaiden! JavaDoc』を参照してください。
3.2.10.2. コンダクターの呼び出し¶
呼び出す場所については特に制限はなく、どこからでも使用できます。intra-mart Accel Kaiden!の勤務表コンダクタークラスを呼び出すサンプルを以下に掲載します。
@Autowiredアノテーションによるコンポーネント取得@Autowired public WorkReportConductor workReportConductor; public void xxxMethod() { workReportConductor.xxxx(); }
コンポーネント名を指定してコンポーネント取得public WorkReportConductor workReportConductor; public void xxxMethod() { workReportConductor = ApplicationContextHolder.getApplicationContext().getBean(WorkReportConductor.class); workReportConductor.xxxx(); }コラム
intra-mart Accel Kaiden!のコンダクタークラスでは、@Autowiredアノテーションを使用しない場合、コンポーネント名を指定して取得しています。