Adapter Design Pattern - How it helps to integrate different interfaces | Adapter pattern in java
http://java9s.com
Adapter design pattern is a structural design pattern and helps in integrating two modules with different incompatible interfaces.
Most important task of an Adapter is to transfer data between applications or modules.
Very common task is to parse the information from one kind to the other
Convert from one type to the other
Some times adapters even validate the data so that right data flows into the application from external applications.
Having adapters help in keeping the conversion code separate so that the parsing functionality is not leaking into the core modules of our application.
Another important advantage of having an adapter is that when there is a change in outside interface, our core modules does not get affected. Only adapters need to be modified. So, this helps in restricting the changes to adapter module alone and rest of application does not get affected.
Another last point I would like to mention is that the adapter we have seen is just an object level, but as I said, adapters can get quite complex and I have seen adapters as large sized applications which convert one form of data to other format. So, these kind of large adapters are part of the architecture some times and play an important role.
Example Code:
https://github.com/java9s/adapter-pattern-example
Other tutorial you might be interested:
Complete Java Beginners Tutorials:
https://www.youtube.com/playlist?list=PLkiVxfkxAYd1Typb8x-2nbzgsxdMQesKg
Multithreading in Java tutorial:
https://www.youtube.com/playlist?list=PLkiVxfkxAYd1i9eX9X74eoTjKZXzvITMX
Spring 3 MVC Framework tutorials:
https://www.youtube.com/playlist?list=PLA3AD4211EBE70E86
Spring Framework Tutorials:
https://www.youtube.com/playlist?list=PL2882729612B70122
Design Patterns in Java:
https://www.youtube.com/playlist?list=PLkiVxfkxAYd1xWYj9aOWoTevqok0VoYe7
Complete Generics Tutorials playlist
https://www.youtube.com/playlist?list=PLkiVxfkxAYd2TAn--1BH1ERvYbHxh11Qs
References:
https://en.wikipedia.org/wiki/Adapter_pattern
https://java9s.tumblr.com/
https://facebook.com/java9s
https://twitter.com/java9s
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Adapter Design Pattern - How it helps to integrate different interfaces | Adapter pattern in java», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.