Skip to content

nazar-art/coronavirus-desinfector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom Spring implementation

Demo project with custom Spring framework implementations.

The main idea what Spring framework exactly does is the following snippet:

@SneakyThrows
public <T> T createObject(Class<T> implClass) {

    T t = create(implClass);

    configure(t);

    invokeInit(implClass, t);

    t = wrapWithProxyIfNeeded(implClass, t);

    return t;
}

Literally it is:

  • creates new instance
  • configure it
  • call init logic for object (2 Phase constructor)
  • wrap with proxy when it is needed
  • return bean to the container

About

Simple Project which demonstrates basic Spring implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages