Removed some more final modifiers

deploy_packages_to_gitea
Jens Pelzetter 2023-01-24 19:36:54 +01:00
parent c3e90a27e1
commit f9fe016c3f
2 changed files with 23 additions and 2 deletions

View File

@ -46,9 +46,19 @@ public abstract class AbstractAssetImExporter<T extends Asset>
@Any
private ItemAttachmentImExporter itemAttachmentImExporter;
/**
* Implementation of {@link AbstractEntityImExporter#init()} for
* {@link Asset}s.
*
* !!! Warning: Implementations of this abstract class MUST NEVER override
* this method. Instead, they MUST implement {@link #initAssetImExporter()}.
*
* Unfortunetly, CDI does not support final methods, therefore we can't make
* this method final.
*/
@PostConstruct
@Override
protected final void init() {
protected void init() {
// ItemAttachmentImExporter requires that all assets to be imported
itemAttachmentImExporter.addRequiredEntities(Set.of(getEntityClass()));

View File

@ -65,9 +65,20 @@ public abstract class AbstractContentItemImExporter<T extends ContentItem>
@Processes(RelatedLink.class)
private RelatedLinkImExporter relatedLinkImExporter;
/**
* Implementation of {@link AbstractEntityImExporter#init()} for
* {@link ContentItems}s.
*
* !!! Warning: Implementations of this abstract class MUST NEVER override
* this method. Instead, they MUST implement {@link #initContentItemImExporter()
* }.
*
* Unfortunetly, CDI does not support final methods, therefore we can't make
* this method final.
*/
@PostConstruct
@Override
protected final void init() {
protected void init() {
addRequiredEntities(
Set.of(
Category.class,