velocity.endpoint-static-builders.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-package-maven-plugin Show documentation
Show all versions of camel-package-maven-plugin Show documentation
Maven plugin to help package Camel components and plugins
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
#set( $newline="
")
/* Generated by camel build tools - do NOT edit this file! */
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.builder.endpoint;
import javax.annotation.processing.Generated;
import org.apache.camel.builder.endpoint.dsl.*;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("${generatorClass}")
public class StaticEndpointBuilders {
#foreach( $model in $sortedModels )
#set( $firstAlias = ($model == $models.get($model.javaType).get(0)) )
#set( $builderName = $mojo.getComponentNameFromType($model.javaType) + "EndpointBuilder" )
#set( $javadoc = $mojo.getMainDescription($model, true) + $newline + $newline
+ "@param path " + $mojo.pathParameterJavaDoc($model) + $newline
+ "@return the dsl builder" + $newline )
${mojo.javadoc(" ", $javadoc)}
#if( $model.deprecated )
@Deprecated
#end
public static ${builderName}Factory.${builderName} ${mojo.camelCaseLower($model.scheme)}(String path) {
return ${mojo.camelCaseLower($models.get($model.javaType).get(0).scheme)}("${model.scheme}", path);
}
#if( $firstAlias )
#set( $javadoc = $mojo.getMainDescription($model, true) + $newline + $newline
+ "@param componentName to use a custom component name for the endpoint instead of the default name" + $newline
+ "@param path " + $mojo.pathParameterJavaDoc($model) + $newline
+ "@return the dsl builder" + $newline )
${mojo.javadoc(" ", $javadoc)}
#if( $model.deprecated )
@Deprecated
#end
public static ${builderName}Factory.${builderName} ${mojo.camelCaseLower($model.scheme)}(String componentName, String path) {
return ${builderName}Factory.endpointBuilder(componentName, path);
}
#end
#end
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy