분류 전체보기
-
Abstract factoryModeling/DesignPattern 2019. 8. 23. 06:38
1. Overview The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes. In normal usage, the client software creates a concrete implementation of the abstract factory and then uses the generic interface of the factory to create the concrete objects that are part of the theme. The client doesn't kno..
-
JDK, JRI, JVM, and ClassloaderStaticPL/JAVA 2019. 8. 23. 06:32
1. Overview The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (Java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc) and other tools needed in Java development. 2. Java Development Kit (JDK) It is a kit that provides the environme..
-
Spring AOPFramework/SPRING 2019. 8. 23. 06:32
1. Overview AOP is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does so by adding additional behavior to existing code without modification of the code itself. 1.1 Code Tangling, Scattering, and Cross-Cutting Concerns Problems Without AOP or Modularization are Code Tangling and Code Scattering. 1.1.1 cross-cutting concern A cros..
-
Cache BurstWeb 2019. 8. 22. 11:51
1. Overview When a static file gets cached it can be stored for very long periods of time before it ends up expiring. Because of that, some visitors can't see changes made. Cache busting solves the browser caching issue by using a unique file version identifier to tell the browser that a new version of the file is available that makes the browser doesn't retrieve the old file from cache but rath..
-
Factory PatternModeling/DesignPattern 2019. 8. 22. 09:17
1. Overview The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method—either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden b..
-
Simple Factory PatternModeling/DesignPattern 2019. 8. 22. 09:16
1. Overview 2. Description 2.1 Motivation Here we simply move the instantiation logic to a separate class and most commonly to a static method of this class Some do not consider a simple factory to be a design pattern, as its simply a method that encapsulates object instantiation. Nothing complex goes on in that method. Typically we want to do this if we have more than one option when instantiat..
-
CallableStaticPL/JAVA 2019. 8. 21. 22:39
1. Overview Whereas Runnable object can not return a result, Callable return a result and throw a checked exception in spite of being executed inside a thread likewise. 2. Description 2.1 Callable Callable interface has a single method call() which is meant to contain the code is executed by a thread. Callable callable = new Callable() { @Override public String call() throws Exception { // Perfo..
-
Executors Framework and Thread PoolsStaticPL/JAVA 2019. 8. 21. 20:39
1. Overview Naive Thread management by extending the Thread class or implementing the Runnable interface has a problem when an application requires creating 20 or 30 threads for running tasks concurrently. Executors Framework is creating and managing threads for a production-ready application like hundreds, if not thousands of threads running simultaneously. 2. Description 2.1 Executor Functiona..