Avalon Basic Concept (5) -SOC Mode

zhaozj2021-02-16  60

SOC meaning

The simple form of SOC is to separate a problem into different perspectives. For example, the document uses SOC mode with XML and XSL to separate it. Any one can vary without damaging others.

In the system, Avalon contains a separate interface to identify the role of the object. For example, all components have certain contracts, then any object that implements component interfaces must follow these contracts. This allows developers to use standard interface to maintain components without having to worry about the semantics of implementation. Because they are separated by converns.

How to use it

There are many ways to isolate ConcerNs. Use the interface in Avalon to define the address of the address in the code.

Every time you use the interface when you have OOP, you are using the SOC mode. The interface will be separated by Concerns and interface users of the interface. For example, each object can be configured to implement the Configurable interface. The contract of the Configurable interface is an instance of the object to pass the configuration object to the Configurable object (refer to IOC). Configurable objects have done what the passed configuration object is independent.

转载请注明原文地址:https://www.9cbs.com/read-16287.html

New Post(0)