Make methods in AbstractEntityImExporter non-final since CDI does not

permit final methods.
deploy_packages_to_gitea
Jens Pelzetter 2022-11-07 20:24:26 +01:00
parent b2eca5232d
commit bbf1f5824b
1 changed files with 6 additions and 2 deletions

View File

@ -95,11 +95,13 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
* containers usually create a {@link java.lang.reflect.Proxy} class and * containers usually create a {@link java.lang.reflect.Proxy} class and
* there is no portable way to unproxy a class. * there is no portable way to unproxy a class.
* *
* <strong>This method is not intended to be overriden, but CDI beans can't have final methods.</strong>
*
* @return A {@link Set} of exportable entity classes which should be * @return A {@link Set} of exportable entity classes which should be
* processed before the entities which are processed by this * processed before the entities which are processed by this
* implementation. * implementation.
*/ */
public final Set<Class<? extends Exportable>> getRequiredEntities() { public Set<Class<? extends Exportable>> getRequiredEntities() {
return Collections.unmodifiableSet(requiredEntities); return Collections.unmodifiableSet(requiredEntities);
} }
@ -108,9 +110,11 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
* This method should only be called by the implementation of the * This method should only be called by the implementation of the
* {@link #init()} method. * {@link #init()} method.
* *
* <strong>This method is not intended to be overriden, but CDI beans can't have final methods.</strong>
*
* @param requiredEntities The additional required entities. * @param requiredEntities The additional required entities.
*/ */
public final void addRequiredEntities( public void addRequiredEntities(
final Set<Class<? extends Exportable>> requiredEntities final Set<Class<? extends Exportable>> requiredEntities
) { ) {
this.requiredEntities.addAll(requiredEntities); this.requiredEntities.addAll(requiredEntities);