Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup extensions #552

Merged
merged 2 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-core";
public class CoreFeature {
private static final String FEATURE = "camel-k-core";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
import org.apache.camel.spi.StreamCachingStrategy;
import org.jboss.jandex.IndexView;

import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.getAllKnownImplementors;
import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.reflectiveClassBuildItem;
import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.stream;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.getAllKnownImplementors;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.reflectiveClassBuildItem;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.stream;

public class DeploymentProcessor {
public class CoreProcessor {
@BuildStep
List<CamelServicePatternBuildItem> servicePatterns() {
return List.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.k.core.quarkus.deployment;
package org.apache.camel.k.core.quarkus.deployment.support;

import java.util.Collection;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-cron";
public class CronFeature {
private static final String FEATURE = "camel-k-cron";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-kamelet";
public class KameletFeature {
private static final String FEATURE = "camel-k-kamelet";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class GroovyLoaderFeature {
private static final String FEATURE = "camel-k-loader-groovy";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class JavaSourceLoaderFeature {
private static final String FEATURE = "camel-k-loader-java";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class JavaScriptFeature {
private static final String FEATURE = "camel-k-loader-js";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;

public class DeploymentProcessor {
public class JavaScriptProcessor {
private static final List<Class<?>> JAVA_CLASSES = Arrays.asList(
Character.class,
Byte.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class KotlinLoaderFeature {
private static final String FEATURE = "camel-k-loader-kotlin";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class XmlLoaderFeature {
private static final String FEATURE = "camel-k-loader-xml";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
public class YamlLoaderFeature {
private static final String FEATURE = "camel-k-loader-yaml";

@BuildStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
import org.jboss.jandex.DotName;
import org.jboss.jandex.IndexView;

import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.getAllKnownImplementors;
import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.getAllKnownSubclasses;
import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.getAnnotated;
import static org.apache.camel.k.core.quarkus.deployment.DeploymentSupport.reflectiveClassBuildItem;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.getAllKnownImplementors;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.getAllKnownSubclasses;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.getAnnotated;
import static org.apache.camel.k.core.quarkus.deployment.support.DeploymentSupport.reflectiveClassBuildItem;

public class DeploymentProcessor {
public class YamlLoaderProcessor {
public static final DotName YAML_STEP_PARSER_ANNOTATION = DotName.createSimple("org.apache.camel.k.annotation.yaml.YAMLStepParser");
public static final DotName YAML_STEP_DEFINITION_ANNOTATION = DotName.createSimple("org.apache.camel.k.annotation.yaml.YAMLNodeDefinition");
public static final DotName YAML_MIXIN_ANNOTATION = DotName.createSimple("org.apache.camel.k.annotation.yaml.YAMLMixIn");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-master";
public class MasterFeature {
private static final String FEATURE = "camel-k-master";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-quarkus";
public class RuntimeFeature {
private static final String FEATURE = "camel-k-runtime";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.apache.camel.quarkus.main.deployment.spi.CamelMainListenerBuildItem;
import org.apache.camel.quarkus.main.deployment.spi.CamelRoutesCollectorBuildItem;

public class DeploymentProcessor {
public class RuntimeProcessor {
@Record(ExecutionTime.STATIC_INIT)
@BuildStep
CamelMainListenerBuildItem mainListener(ApplicationRecorder recorder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.camel.component.webhook.WebhookConfiguration;

public class WebhookFeature {
private static final String FEATURE = "camel-k-runtime-webhook";
private static final String FEATURE = "camel-k-webhook";

@BuildStep
FeatureBuildItem feature() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;

public class Feature {
private static final String FEATURE = "camel-k-runtime-wrap";
public class WrapFeature {
private static final String FEATURE = "camel-k-wrap";

@BuildStep
FeatureBuildItem feature() {
Expand Down