-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run cfn init to set up LookoutVision Project resource providers #6
Conversation
|
||
// Placeholder for the functionality that could be shared across Create/Read/Update/Delete/List Handlers | ||
|
||
public abstract class BaseHandlerStd extends BaseHandler<CallbackContext> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as a best practice, let's not use inheritance as a way to do code re-use once we actually start implementing this stuff. Instead, let's break out common functionality into separate classes and use injection (e.g. Dagger) to provide implementations inside the handlers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted
import software.amazon.cloudformation.proxy.LoggerProxy; | ||
import software.amazon.cloudformation.proxy.ProxyClient; | ||
|
||
public class AbstractTestBase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, let's not use inheritance as a way to do code sharing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted
Description
This contains the boilerplate code generated by running "cfn init" for "AWS::LookoutVision::Project". The directory name is "aws-lookoutvision-project".
Testing