Search in sources :

Example 1 with BookController

use of com.tvd12.ezyfox.example.bean.controller.BookController in project ezyfox-examples by tvd12.

the class EzyFoxBeanExample method main.

public static void main(String[] args) {
    final EzyBeanContext beanContext = EzyBeanContext.builder().scan("com.tvd12.ezyfox.example.bean").build();
    final BookController bookController = (BookController) beanContext.getBean(BookController.class);
    bookController.saveBook(new Book(1L, "EzyFox in action"));
}
Also used : EzyBeanContext(com.tvd12.ezyfox.bean.EzyBeanContext) Book(com.tvd12.ezyfox.example.bean.entity.Book) BookController(com.tvd12.ezyfox.example.bean.controller.BookController)

Aggregations

EzyBeanContext (com.tvd12.ezyfox.bean.EzyBeanContext)1 BookController (com.tvd12.ezyfox.example.bean.controller.BookController)1 Book (com.tvd12.ezyfox.example.bean.entity.Book)1