cagataygurturk / lambadaframework

Build serverless REST API's with JAVA. It implements the JAX-RS API and deploys your application easily to AWS Lambda and API Gateway
MIT License
244 stars 48 forks source link

Spring support #33

Closed ilndinesh closed 7 years ago

ilndinesh commented 7 years ago

I have added Spring context support. This is major change because the spring context is initialized on first run, and the way we get the resource objects has changed.

After this feature, we can write the rest services with spring annotation support, like autowiring etc.

cagataygurturk commented 7 years ago

First of all thanks for your contribution. Autowiring is really cool feature and I also had some work about that: https://github.com/cagataygurturk/aws-lambda-java-boilerplate

On the other hand I think this support should not be included in Lambada Framework but should be implemented by the user himself if he wants that.

There are alternative DI containers, for instance Guice and the user should be able to integrate it to his project, if he prefers it.

I think Lambada Framework's scope should be limited to JAX-RS implementation and HTTP handling.

arranubels commented 7 years ago

Could this be made a project which depends on Lambada? Such as: https://github.com/lambadaframework/lambadaframework-with-spring?

ilndinesh commented 7 years ago

okay

cagataygurturk commented 7 years ago

This is an idea, @ilndinesh you can create a example project with Spring and we can mention about it at Readme file.