Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
606 bytes
|
Line | |
---|
1 | package com.framsticks.parsers; |
---|
2 | |
---|
3 | import java.util.Collections; |
---|
4 | import java.util.LinkedList; |
---|
5 | import java.util.List; |
---|
6 | |
---|
7 | import com.framsticks.params.annotations.AutoAppendAnnotation; |
---|
8 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
9 | import com.framsticks.util.AutoBuilder; |
---|
10 | |
---|
11 | @FramsClassAnnotation |
---|
12 | public class AutoInjector implements AutoBuilder { |
---|
13 | |
---|
14 | protected final List<Object> objects = new LinkedList<>(); |
---|
15 | |
---|
16 | @Override |
---|
17 | public List<Object> autoFinish() { |
---|
18 | return Collections.unmodifiableList(objects); |
---|
19 | } |
---|
20 | |
---|
21 | @AutoAppendAnnotation |
---|
22 | public void append(Object object) { |
---|
23 | objects.add(object); |
---|
24 | } |
---|
25 | |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.