Last change
on this file 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:
705 bytes
|
Line | |
---|
1 | package com.framsticks.params; |
---|
2 | |
---|
3 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
4 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
5 | |
---|
6 | @FramsClassAnnotation |
---|
7 | public abstract class ParamsPackage { |
---|
8 | |
---|
9 | |
---|
10 | protected boolean build = false; |
---|
11 | |
---|
12 | public abstract void register(Registry registry); |
---|
13 | |
---|
14 | /** |
---|
15 | * @return the build |
---|
16 | */ |
---|
17 | @ParamAnnotation |
---|
18 | public boolean getBuild() { |
---|
19 | return build; |
---|
20 | } |
---|
21 | |
---|
22 | /** |
---|
23 | * @param build the build to set |
---|
24 | */ |
---|
25 | @ParamAnnotation |
---|
26 | public void setBuild(boolean build) { |
---|
27 | this.build = build; |
---|
28 | } |
---|
29 | |
---|
30 | protected void register(Registry registry, Class<?> javaClass) { |
---|
31 | if (build) { |
---|
32 | registry.registerAndBuild(javaClass); |
---|
33 | } else { |
---|
34 | registry.register(javaClass); |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.