Skip to content

Commit

Permalink
CAMEL-10042: camel-spring-boot - Add default values to auto configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
davsclaus committed Jun 10, 2016
1 parent 1fa124d commit 6bce8a1
Show file tree
Hide file tree
Showing 53 changed files with 394 additions and 394 deletions.
Expand Up @@ -32,17 +32,17 @@ public class DirectComponentConfiguration {
* then we can tell the producer to block and wait for the consumer to
* become active.
*/
private boolean block;
private Boolean block = false;
/**
* The timeout value to use if block is enabled.
*/
private long timeout;
private long timeout = 30000;

public boolean isBlock() {
public Boolean getBlock() {
return block;
}

public void setBlock(boolean block) {
public void setBlock(Boolean block) {
this.block = block;
}

Expand Down
Expand Up @@ -33,11 +33,11 @@ public class DirectVmComponentConfiguration {
* then we can tell the producer to block and wait for the consumer to
* become active.
*/
private boolean block;
private Boolean block = false;
/**
* The timeout value to use if block is enabled.
*/
private long timeout;
private long timeout = 30000;
/**
* Sets a HeaderFilterStrategy that will only be applied on producer
* endpoints (on both directions: request and response). Default value:
Expand All @@ -48,13 +48,13 @@ public class DirectVmComponentConfiguration {
* Whether to propagate or not properties from the producer side to the
* consumer side and viceversa. Default value: true.
*/
private boolean propagateProperties;
private Boolean propagateProperties = true;

public boolean isBlock() {
public Boolean getBlock() {
return block;
}

public void setBlock(boolean block) {
public void setBlock(Boolean block) {
this.block = block;
}

Expand All @@ -75,11 +75,11 @@ public void setHeaderFilterStrategy(
this.headerFilterStrategy = headerFilterStrategy;
}

public boolean isPropagateProperties() {
public Boolean getPropagateProperties() {
return propagateProperties;
}

public void setPropagateProperties(boolean propagateProperties) {
public void setPropagateProperties(Boolean propagateProperties) {
this.propagateProperties = propagateProperties;
}
}
Expand Up @@ -60,7 +60,7 @@ public class PropertiesComponentConfiguration {
/**
* Whether or not to cache loaded properties. The default value is true.
*/
private boolean cache;
private Boolean cache = false;
/**
* Optional prefix prepended to property names before resolution.
*/
Expand All @@ -74,12 +74,12 @@ public class PropertiesComponentConfiguration {
* propertyPrefix and propertySuffix before falling back the plain property
* name specified. If false only the augmented property name is searched.
*/
private boolean fallbackToUnaugmentedProperty;
private Boolean fallbackToUnaugmentedProperty = false;
/**
* Whether to silently ignore if a location cannot be located such as a
* properties file not found.
*/
private boolean ignoreMissingLocation;
private Boolean ignoreMissingLocation = false;
/**
* Sets the value of the prefix token used to identify properties to
* replace. Setting a value of null restores the default token (link link
Expand Down Expand Up @@ -147,11 +147,11 @@ public void setPropertiesParser(PropertiesParser propertiesParser) {
this.propertiesParser = propertiesParser;
}

public boolean isCache() {
public Boolean getCache() {
return cache;
}

public void setCache(boolean cache) {
public void setCache(Boolean cache) {
this.cache = cache;
}

Expand All @@ -171,20 +171,20 @@ public void setPropertySuffix(String propertySuffix) {
this.propertySuffix = propertySuffix;
}

public boolean isFallbackToUnaugmentedProperty() {
public Boolean getFallbackToUnaugmentedProperty() {
return fallbackToUnaugmentedProperty;
}

public void setFallbackToUnaugmentedProperty(
boolean fallbackToUnaugmentedProperty) {
Boolean fallbackToUnaugmentedProperty) {
this.fallbackToUnaugmentedProperty = fallbackToUnaugmentedProperty;
}

public boolean isIgnoreMissingLocation() {
public Boolean getIgnoreMissingLocation() {
return ignoreMissingLocation;
}

public void setIgnoreMissingLocation(boolean ignoreMissingLocation) {
public void setIgnoreMissingLocation(Boolean ignoreMissingLocation) {
this.ignoreMissingLocation = ignoreMissingLocation;
}

Expand Down
Expand Up @@ -54,13 +54,13 @@ public class XsltComponentConfiguration {
* forced to reload at runtime via JMX using the clearCachedStylesheet
* operation.
*/
private boolean contentCache;
private Boolean contentCache = true;
/**
* Whether to use Saxon as the transformerFactoryClass. If enabled then the
* class net.sf.saxon.TransformerFactoryImpl. You would need to add Saxon to
* the classpath.
*/
private boolean saxon;
private Boolean saxon = false;

public XmlConverter getXmlConverter() {
return xmlConverter;
Expand All @@ -86,19 +86,19 @@ public void setUriResolver(URIResolver uriResolver) {
this.uriResolver = uriResolver;
}

public boolean isContentCache() {
public Boolean getContentCache() {
return contentCache;
}

public void setContentCache(boolean contentCache) {
public void setContentCache(Boolean contentCache) {
this.contentCache = contentCache;
}

public boolean isSaxon() {
public Boolean getSaxon() {
return saxon;
}

public void setSaxon(boolean saxon) {
public void setSaxon(Boolean saxon) {
this.saxon = saxon;
}
}
Expand Up @@ -30,7 +30,7 @@ public class ZipDataFormatConfiguration {
* To specify a specific compression between 0-9. -1 is default compression
* 0 is no compression and 9 is best compression.
*/
private Integer compressionLevel;
private Integer compressionLevel = -1;

public Integer getCompressionLevel() {
return compressionLevel;
Expand Down
Expand Up @@ -59,7 +59,7 @@ public class WsComponentConfiguration {
* the incoming data from the request to Java and that can be a potential
* security risk.
*/
private boolean allowJavaSerializedObject;
private Boolean allowJavaSerializedObject = false;
/**
* To use a custom HeaderFilterStrategy to filter header to and from Camel
* message.
Expand Down Expand Up @@ -99,11 +99,11 @@ public void setSslContextParameters(
this.sslContextParameters = sslContextParameters;
}

public boolean isAllowJavaSerializedObject() {
public Boolean getAllowJavaSerializedObject() {
return allowJavaSerializedObject;
}

public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) {
public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) {
this.allowJavaSerializedObject = allowJavaSerializedObject;
}

Expand Down
Expand Up @@ -59,7 +59,7 @@ public class AhcComponentConfiguration {
* the incoming data from the request to Java and that can be a potential
* security risk.
*/
private boolean allowJavaSerializedObject;
private Boolean allowJavaSerializedObject = false;
/**
* To use a custom HeaderFilterStrategy to filter header to and from Camel
* message.
Expand Down Expand Up @@ -99,11 +99,11 @@ public void setSslContextParameters(
this.sslContextParameters = sslContextParameters;
}

public boolean isAllowJavaSerializedObject() {
public Boolean getAllowJavaSerializedObject() {
return allowJavaSerializedObject;
}

public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) {
public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) {
this.allowJavaSerializedObject = allowJavaSerializedObject;
}

Expand Down

0 comments on commit 6bce8a1

Please sign in to comment.