[Studies] Frameworks

명원식·2023년 8월 10일
0

Studies

목록 보기
1/9
post-thumbnail

Framework Definition:

  • In a literal sense, it refers to the structure or skeleton that constitutes something.
  • In the context of software, it refers to a semi-finished product that provides pre-built classes, interfaces, etc., to offer specific functionalities.

Advantages of Framework:

  • Development is conducted according to predefined standards, ensuring the development productivity and quality of the resulting application.
  • High-quality applications can be developed with assured maintainability and scalability after development.

18.1.1 Spring Framework

Spring Framework

  • The Spring Framework (referred to as Spring) is an open-source framework for Java web application development.
  • It is a lightweight framework compared to Enterprise Java Beans (EJB).

Container:

  • A container is a runtime environment responsible for managing the lifecycle of various components within an application.
  • Tomcat is referred to as a servlet container because, when Tomcat is running, it has complete control over tasks related to servlets such as creation, initialization, service execution, and destruction.

In the context of Spring:

  • Spring is a container that manages various components (beans or class objects) used in an application.
  • Spring manages the lifecycle of these beans, handling their creation, initialization, usage, and cleanup.
  • Developers delegate the responsibility of managing these beans to Spring, ensuring a more organized and efficient application structure.

Spring's Characteristics

  • Easier to learn and simpler than the (Enterprise Java Bean). Functions as a lightweight container.
  • Use Inversion of Control (IoC) technology to control loose coupling between applications
  • Supports DI(Dependency Injection) functionality
  • Perform resource management using the AOP function
  • Supports persistence and various related services
    - What is persistence?
    - Persistence refers to the ability of a system to store and retrieve data in a consistent and durable manner across different program executions or system failures. In the context of software development, persistence typically involves saving data from memory (volatile storage) into a more permanent form of storage, such as a database or a file system.
  • Supports interworking with numerous libraries

Terms

  • Dependency Injection: A method where the framework creates and provides class objects in the code, instead of developers creating them manually.
  • Inversion of Control (IOC): A method where the framework creates and provides class objects in the code, instead of developers creating them manually.
  • Aspect Oriented Programming: A technique that increases modularity by separating core functionalities from additional functions, which are implemented separately. This allows you to focus on the core logic while managing cross-cutting concerns in a modular way.

Spring's Main Functions

profile
but i brought potato salad

0개의 댓글