Package org.nekosoft.pdffer.template
Annotation Interface PdfTemplateComponent
A stereotype annotation to mark a class as a PDF template for the PDFfer registry. PDF templates must reside in
the
org.nekosoft.PDFferTemplates
package and must implement the PdfTemplate
interface.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe group to which this template belongs.The scope of this template (by default, it is "prototype", as set in theSCOPE_DEFAULT
constant). -
Field Summary
Modifier and TypeFieldDescriptionstatic String
The base package where all PDFfer templates reside.static String
The separator used for composing a template path from a name and group.static String
The string representing the ROOT registrystatic String
The default scope for all PDFfer templates ("prototype")static String
The singleton scope for templates that follow a different paradigm to the standard one.
-
Field Details
-
SCOPE_DEFAULT
The default scope for all PDFfer templates ("prototype")- See Also:
- Constant Field Values
-
SCOPE_SINGLETON
The singleton scope for templates that follow a different paradigm to the standard one. Other scopes are also possible but not checked by PDFfer, they are just passed on to the Spring framework.- See Also:
- Constant Field Values
-
ROOT_REGISTRY
The string representing the ROOT registry- See Also:
- Constant Field Values
-
BASE_PACKAGE
The base package where all PDFfer templates reside.- See Also:
- Constant Field Values
-
GROUP_SEPARATOR
The separator used for composing a template path from a name and group. This allows any printable character to be used as either the name or the group. Composing and de-composing template paths should always only be done with the methods provided inPdfTemplate
, namelygetTemplatePath
andsplitTemplatePath
.- See Also:
- Constant Field Values
-
-
Element Details
-
name
String nameThe name of this template.- Returns:
- the name
-
-
-
group
String groupThe group to which this template belongs.- Returns:
- the group
- Default:
- ""
-
scope
String scopeThe scope of this template (by default, it is "prototype", as set in theSCOPE_DEFAULT
constant).- Returns:
- the scope
- Default:
- "prototype"
-