Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reusing code between resources

オープン
#335 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java

調査の方向性

Translator.java と HandlerUtils.java にあるリンク先の AWS IoT 例から始め、リソース Maven プロジェクト間で重複している例外変換と listTags メソッドに重点を置いてください。次に、この Java プラグインが個別のプロジェクトをどのように生成するかを調査し、共有コードをサポートできるかどうかを判断してください。これらのハンドラーを再利用するための具体的なアプローチを文書化または実装できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi, I'm from AWS IoT, we have a question/feature request.

Our handlers across different resources use the same code for exception translations and listing resource tags. These resources reside in the same GitHub repository, yet, since each resource has its own Maven project, we're unable to reuse that common code and haven't seen solutions in other repositories.

Specific examples from our AWS IoT repo (code is still in PRs):

  1. Exception translation code - link. We have this method in the Translator class for each resource.
  2. listTags method (calls IoT::ListTagsForResource) - link.

For both of these, we're able to reuse the code between handlers for the same resource, but we had to copy paste this piece of code for each resource.

Is there a solution available for our use case?

主要言語
Java
スター
30
フォーク
48
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-cloudformation/cloudformation-cli-java-plugin のほかの issue

aws-cloudformation/cloudformation-cli-java-plugin の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。