]> git.somenet.org - pub/jan/dst18.git/blob - ass2-di/src/test/java/dst/ass2/di/type/Container.java
Add template for assignment 2
[pub/jan/dst18.git] / ass2-di / src / test / java / dst / ass2 / di / type / Container.java
1 package dst.ass2.di.type;
2
3 import static dst.ass2.di.annotation.Scope.PROTOTYPE;
4
5 import dst.ass2.di.annotation.Component;
6 import dst.ass2.di.annotation.ComponentId;
7 import dst.ass2.di.annotation.Inject;
8
9 @Component(scope = PROTOTYPE)
10 public class Container {
11     @ComponentId
12     public Long id;
13     public Long timestamp = System.currentTimeMillis();
14     @Inject
15     public SimpleSingleton first;
16     @Inject
17     public SimpleSingleton second;
18     @Inject
19     public SimpleComponent component;
20     @Inject
21     public SimpleComponent anotherComponent;
22 }