Skip to content

Commit f2fa1f1

Browse files
authored
so is every one that is born of the Spirit
The wind bloweth where it listeth, and thou hearest the sound thereof, but canst not tell whence it cometh, and whither it goeth: so is every one that is born of the Spirit. (John 3:8)
1 parent 67212f2 commit f2fa1f1

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
//The wind bloweth where it listeth, and thou hearest the sound thereof, but canst not tell whence it cometh,
3+
//and whither it goeth: so is every one that is born of the Spirit. (John 3:8)
4+
5+
package com.javarush.task.task28.task2810;
6+
7+
/**
8+
* @author Jesus Lord Almighty
9+
* at 12.01.18
10+
*/
11+
12+
public class Aggregator {
13+
14+
public static void main(String[] args) {
15+
16+
}
17+
}
18+
19+
/*
20+
Aggregator (1)
21+
22+
Пришло время немного поработать с информацией в инете. В этом задании ты будешь писать агрегатор java вакансий.
23+
24+
Что у нас должно быть?
25+
26+
Должен быть список сайтов, на которых мы ищем вакансии.
27+
28+
Для начала возьмем http://hh.ua/ и http://hh.ru/, потом уже добавим другие сайты поиска работы.
29+
30+
Это один и тот же сайт, только в разных доменах.
31+
32+
33+
34+
С чего же нужно начать реализацию? Конечно же с метода main : )
35+
36+
1. Создай класс Aggregator с методом main.
37+
38+
39+
40+
2. Создай пакет model, в нем создай класс Provider.
41+
42+
Этот класс будет обобщать способ получения данных о вакансиях.
43+
44+
45+
46+
3. Т.к. для каждого сайта будет выполняться одинаковый сценарий, то будет паттерн Стратегия. Почитай про него в инете на вики.
47+
48+
В пакете model создай интерфейс Strategy.
49+
50+
Он будет отвечать за получение данных с сайта.
51+
52+
53+
54+
4. В класс Provider добавь поле Strategy strategy. Добавь конструктор с этим полем и сеттер.
55+
56+
57+
58+
59+
60+
Требования:
61+
62+
1. Создай класс Aggregator с методом main.
63+
64+
2. Создай пакет model, и в нем создай класс Provider.
65+
66+
3. В пакете model создай интерфейс Strategy.
67+
68+
4. В класс Provider добавь поле Strategy strategy. Добавь конструктор с этим полем и сеттер.
69+
*/

0 commit comments

Comments
 (0)