D
D
dearname2018-11-14 18:02:53
Java
dearname, 2018-11-14 18:02:53

Where to read about writing your own containers?

Good evening. I'm interested in any literature about writing your own containers like OSGI container, Servlet container, DI container. I use this, but I'm interested in how they are arranged or how the container running on the JVM is theoretically arranged. Literature in these areas, as a rule, describes how to work with these containers, but there is nothing about how they are implemented inside.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2018-11-14
@jamakasi666

In Java, there is such a thing as JSR which is a specification \ description of how it should be and what to do.
For example, OSGI implements
Sun JCP JSR-8 (Open Services Gateway Specification)
Sun JCP JSR-232 (Mobile Operational Management)
Sun JCP JSR-246 (Device Management API)
Sun JCP JSR-249 (Mobile Service Architecture for CDC)
Sun JCP JSR -277 - JSR-277: Java Module System
Sun JCP JSR-291 (Dynamic Component Support for JavaTM SE
) taking the above jsr and implementing everything according to the description, get the implementation of osgi.

A
Alexey Cheremisin, 2018-11-14
@leahch

Well, start by learning picocontainer - picocontainer.com
There is also an explanation of how it works. Actually, everything is based on reflections and DI.
Yes, here are a couple more articles to read - https://www.beyondjava.net/build-dependency-inject...
and https://academy.realm.io/posts/android-pierre-yves...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question