Resource Implementation
Once you've integrated milton into your project and runtime, you need to implement the application logic which milton will use
Milton has two frameworks for implementations
- The Resource API. You implement the various resource capability interfaces such as DeletableResource, and make them available to milton by implementing a ResourceFactory. This is the old (aka classic) approach
- Annotated Controller Framework: Using this approach you configure milton with one or more singleton objects which act as controllers. The controllers have annotated methods for operating on your domain objects. You dont need to implement any interfaces
The annotations method should be generally preferred. Its a higher level interface so milton can provide more services transparently, allowing you to focus on just your application logic.