Skip to content

Getting Started

aino-deepali edited this page Jun 23, 2017 · 16 revisions

Let's understand the project structure.

Getting started

  • The primary goals of appOps is to optimise development productivity without compromising performance of the project and to make thing overall simpler.
  • It is simple service architecture.
  • It is an maven multi module project which means multiple project are under in single project and when you build the top level project it builds all child project.
  • Your client browser connect to the web server which is appOps-infra-web and then web server interacts with app server and app server interacts with database.

We have to use few annotations:

@Service

You can define a service interface with multiple implementations. With the help of this annotation you can create your services by putting '@Service' annotation on your service interface

To illustrate, we'll start the Library service, it is an interface that becomes my service interface to be invoked from the client and Library service contain method declarations. This is implemented by LibraryServiceImpl class.

@ServiceModule

Let's you define a service with all it's bindings. This annotation allows you to define bindings with service interface verses what implementation you want to provide.

To illustrate, we'll start the Library service module class, it extends the AbsractModule class and overrides the configure() method , in that you will define bindings. Library service module class must be annotated with @ServiceModule

Clone this wiki locally