node. JS Application Layer Framework Bearcat overview

Source: Internet
Author: User

Bearcat is a POJOs-based application-layer framework developed by NetEase, Bearcat provides a lightweight container to write simple, maintainable node. js. Bearcat provides a basic underlying to manage application logic objects, allowing developers to focus on the logic of the application layer. Bearcat enables developers to write "simple, pure JavaScript objects" (POJO) and does not hack into these POJO, and you can deploy the POJO in an environment that does not use Bearcat.

Bearcat overview
Bearcat includes several parts, including:

Core container
The core container contains the core, Beans, and context modules.

The core and beans modules provide the basic parts of the container, including IOC containers and dependency injection. Beanfactory is a complex factory factory pattern implementation. It goes beyond manually writing a singleton to allow your actual program logic to be decoupled from configuration and dependency management.

The Context module is based on the core and beans modules, and provides some more advanced content, ApplicationContext is its main implementation.

Plane-oriented programming


Bearcat provides aspect-oriented programming (AOP) support based on the core container, allowing the developer to define, method interceptors, and slice to solve even the business logic that needs to be separated.

Characteristics
Lightweight containers
* Dependency Injection (DI) implementation of control inversion (IoC) to manage POJOs
* AOP-based declarative crosscutting logic
* Consistent development and configuration

Simplicity of

* Simple metadata configuration and writing POJOs
* Light weight: Efficient development based on node. js
* Reusable: POJOs can be applied to any development environment
* Non-intrusive: development without dependency on the container API
* modularity: Use the parts that you need
* One-stop service: No need to manually write Singleton and factory methods

Powerful

* Good reference: complete documentation, many examples include Web Todo, realtime app

* Good testing: over 95% test coverage

Can be extended

* Custom Extensions: You can add custom code to the container

Reference

    • Homepage: http://bearcatnode.github.io/bearcat/

    • Mailing list: https://groups.google.com/group/bearcatnode/

    • Wiki: https://github.com/bearcatnode/bearcat/wiki/

    • Issues: https://github.com/bearcatnode/bearcat/issues/

    • Tags:nodejs, POJO, IoC, AOP, consistent configuration

This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1614994

node. JS Application Layer Framework Bearcat overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.