Spring in Practice: Design Patterns used in Spring Framework

Following are the design patterns used in Spring Framework Design Pattern Details MVC Pattern MVC Design Pattern is a software design that separates the following components of a system or subsystem: Model – Data about the state of the application or its components. May include routines for modification or access. View – An interpretation of the data… Weiterlesen Spring in Practice: Design Patterns used in Spring Framework

SOLID Prinicples

S Single Responsibility: Klassen darf nur eine zuständigkeit haben O Open Closed Principle: Offen gegnüber Erweiterung closed für Änderungen Sollte ohne änderungen an Klasse erweiterbar sein. Falscher Weg Public class StringTransformer {  String anyString; …. Public String Transform() { Return anyString.toUpperCase(); } Static void main(string[] args) { Transformer = new StringTransformer(“Foo”); Println(transformer.transform()); } } Richtiger… Weiterlesen SOLID Prinicples