Make methods in AbstractEntityImExporter non-final since CDI does not
permit final methods.deploy_packages_to_gitea
parent
b2eca5232d
commit
bbf1f5824b
|
|
@ -94,12 +94,14 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
* annotations in a portable way in the rest of the code because CDI
|
||||
* containers usually create a {@link java.lang.reflect.Proxy} class and
|
||||
* 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
|
||||
* processed before the entities which are processed by this
|
||||
* implementation.
|
||||
*/
|
||||
public final Set<Class<? extends Exportable>> getRequiredEntities() {
|
||||
public Set<Class<? extends Exportable>> getRequiredEntities() {
|
||||
return Collections.unmodifiableSet(requiredEntities);
|
||||
}
|
||||
|
||||
|
|
@ -107,10 +109,12 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
* Add entities that have be processed before this implementation is used.
|
||||
* This method should only be called by the implementation of the
|
||||
* {@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.
|
||||
*/
|
||||
public final void addRequiredEntities(
|
||||
public void addRequiredEntities(
|
||||
final Set<Class<? extends Exportable>> requiredEntities
|
||||
) {
|
||||
this.requiredEntities.addAll(requiredEntities);
|
||||
|
|
|
|||
Loading…
Reference in New Issue