Skip to content

Commit

Permalink
Add missing App, CMMN, DMN and Event Registry resource hints + remove…
Browse files Browse the repository at this point in the history
… no longer needed service runtime hints
  • Loading branch information
filiphr committed Jul 16, 2024
1 parent cb31809 commit c2d5412
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package org.flowable.app.engine.impl.aot;

import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar;
import org.flowable.common.engine.impl.aot.FlowableSqlResourceHintsRegistrar;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
Expand All @@ -26,5 +27,6 @@ public class FlowableAppRuntimeHints implements RuntimeHintsRegistrar {
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
ResourceHints resourceHints = hints.resources();
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/app/db/mapping", hints, classLoader);
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/app/db", resourceHints);
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package org.flowable.cmmn.engine.impl.aot;

import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar;
import org.flowable.common.engine.impl.aot.FlowableSqlResourceHintsRegistrar;
import org.flowable.variable.service.impl.QueryVariableValue;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ResourceHints;
Expand All @@ -29,6 +30,7 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
ResourceHints resourceHints = hints.resources();
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/cmmn/db/mapping", hints, classLoader);
resourceHints.registerPattern("org/flowable/impl/cmmn/parser/*.xsd");
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/cmmn/db", resourceHints);

hints.reflection()
.registerType(QueryVariableValue.class, MemberCategory.INVOKE_PUBLIC_METHODS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package org.flowable.dmn.engine.impl.aot;

import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar;
import org.flowable.common.engine.impl.aot.FlowableSqlResourceHintsRegistrar;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
Expand All @@ -26,6 +27,7 @@ public class FlowableDmnRuntimeHints implements RuntimeHintsRegistrar {
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
ResourceHints resourceHints = hints.resources();
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/dmn/db/mapping", hints, classLoader);
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/dmn/db", resourceHints);
resourceHints.registerPattern("org/flowable/impl/dmn/parser/*.xsd");
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
package org.flowable.eventregistry.impl.aot;

import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar;
import org.flowable.common.engine.impl.aot.FlowableSqlResourceHintsRegistrar;
import org.flowable.eventregistry.impl.persistence.ResourceRefTypeHandler;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;

Expand All @@ -28,5 +30,7 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/eventregistry/db/mapping", hints, classLoader);
hints.reflection()
.registerType(ResourceRefTypeHandler.class, MemberCategory.values());
ResourceHints resourceHints = hints.resources();
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/eventregistry/db", resourceHints);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c2d5412

Please sign in to comment.