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

Support for multiple packages #39

Open syedautherabbas opened 7 years ago

syedautherabbas commented 7 years ago

Currently only one package name can be supplied , what if resources are spread across multiple packages or what if the code follows barebones mvc (some classes in controller package , some in services package, some in model) . Only those mentioned in the packageName property will be picked up and rest ignored.

cagataygurturk commented 7 years ago

Valid point but remember that scanning more packages will increase the loading time of the Lambda. So it is better idea to narrow the scope of JAX-RS controllers. It can create some incompatibilities with existing project (which has controllers in different packages) but performance is also important...