Uploaded image for project: 'Ymir'
  1. Ymir
  2. YMIR-358

[ymir-extension] 空のBaseクラスを各パッケージ階層ごとに自動生成できるようにする

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.6
    • Fix Version/s: 1.0.7
    • Component/s: ymir-extension
    • Labels:
      None

      Description

      サブパッケージに分けるタイプのアプリケーションでは、パッケージ毎にBaseクラスがあった方が都合が良いことが多い。例えばcom.exampleがルートパッケージとすると、com.example.web.sub1.sub2.PageBase, com.example.web.sub1.PageBase, com.example.web.PageBaseがあって階層どおりの親子関係を持っていると、共通メソッドをまとめていきやすい。

      そのため空のBaseクラスを各パッケージ階層ごとに自動生成することができるようなオプションを追加する。

        Activity

        Repository Revision Date User Message
        ymir repository #3688 Thu Feb 18 13:05:41 JST 2010 skirnir [#YMIR-358]に対処した。
        Files Changed
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/action/impl/CreateConfigurationAction.java
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/impl/SourceCreatorImpl.java
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/mock/MockSourceCreator.java
        ADD /component/trunk/ymir-extension/src/test/resources/org/seasar/ymir/extension/creator/impl/SourceCreatorImplTest_test_writeEmptyBaseSourceFileIfNotExists_Page.expected
        DEL /component/trunk/ymir-extension/src/main/resources/org/seasar/ymir/extension/freemarker/template/PageSuperclass.java.ftl
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/SourceCreatorSetting.java
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/impl/ImportDescImpl.java
        MODIFY /component/trunk/ymir-extension/src/test/java/org/seasar/ymir/extension/creator/impl/SourceCreatorImplTest.java
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/ClassType.java
        MODIFY /component/trunk/ymir-extension/src/test/java/org/seasar/ymir/extension/creator/SourceCreatorSettingTest.java
        ADD /component/trunk/ymir-extension/src/test/resources/org/seasar/ymir/extension/creator/impl/SourceCreatorImplTest_test_writeEmptyBaseSourceFileIfNotExists_Dto.expected
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/SourceCreator.java
        MODIFY /component/trunk/ymir-extension/src/main/java/org/seasar/ymir/extension/creator/ImportDesc.java
        ADD /component/trunk/ymir-extension/src/main/resources/org/seasar/ymir/extension/freemarker/template/Base.java.ftl (from /component/trunk/ymir-extension/src/main/resources/org/seasar/ymir/extension/freemarker/template/PageSuperclass.java.ftl)

          People

          • Assignee:
            skirnir skirnir
            Reporter:
            skirnir skirnir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development