OOP is dead and AOP is born for the future (. Net+java)

Source: Internet
Author: User

Oop is dead, AOP is for the future

The future of building complex service-based applications will be aspect-oriented programming AOP (Aspect-oriented programming), while object-oriented programming OOP will be an aid.

? control Inversion (IOC) mode. This generic pattern is described as an instance method that supports plug-in schemas where objects can be "queried" and they need other objects.
? Dependency Injection (DI) mode. This is a special case of IOC mode, which is based on the interface programming technique of changing class behavior, without changing the interior of the class.
The developer encodes the interface for the class and uses a container to inject the dependent object instance into the class based on the interface or object type.
The technique injects object instances including interface injection, constructor injection, attribute (setter method) injection, and method invocation injection.

1. Java IOC and DI mode applications:


Spring IoC Container:
http://www.vogella.com/tutorials/SpringDependencyInjection/article.html
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/beans.html
http://www.dzone.com/tutorials/java/spring/spring-ioc-1.html
Tapestry:https://tapestry.apache.org/ioc.html
PICO Container:
http://picocontainer.codehaus.org/
http://docs.codehaus.org/display/PICO/Two+minute+tutorial
Google Guice:https://github.com/google/guice
SILK DI:http://www.silkdi.com/
Dagger:http://square.github.io/dagger/
CDI:http://docs.oracle.com/javaee/6/tutorial/doc/giwhl.html
Create a simple IoC Container Using Annotations: https://today.java.net/article/2005/06/17/ Create-simple-ioc-container-using-annotations

2.. NET IOC and DI mode applications:


Unity application Block:https://msdn.microsoft.com/en-us/library/ff650806.aspx
Ninject:https://github.com/ninject

OOP is dead and AOP is born for the future (. Net+java)

Related Article

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.