Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* and throws error and fatal as exception, which ensures those can be caught by Camel and dealt-with.
*/
public class DefaultTransformErrorHandler implements ErrorHandler, ErrorListener {
private static final transient Logger LOG = LoggerFactory.getLogger(DefaultTransformErrorHandler.class);
private static final Logger LOG = LoggerFactory.getLogger(DefaultTransformErrorHandler.class);

public void error(SAXParseException exception) throws SAXException {
throw exception;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @version
*/
public class MessageVariableResolver implements XPathVariableResolver {
private static final transient Logger LOG = LoggerFactory.getLogger(MessageVariableResolver.class);
private static final Logger LOG = LoggerFactory.getLogger(MessageVariableResolver.class);

private Map<String, Object> variables = new HashMap<String, Object>();
private final ThreadLocal<Exchange> exchange;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
* @see XPathConstants#NODESET
*/
public class XPathBuilder extends ServiceSupport implements Expression, Predicate, NamespaceAware {
private static final transient Logger LOG = LoggerFactory.getLogger(XPathBuilder.class);
private static final Logger LOG = LoggerFactory.getLogger(XPathBuilder.class);
private static final String SAXON_OBJECT_MODEL_URI = "http://saxon.sf.net/jaxp/xpath/om";
private static final String OBTAIN_ALL_NS_XPATH = "//*/namespace::*";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
public class XsltUriResolver implements URIResolver {

private static final transient Logger LOG = LoggerFactory.getLogger(XsltUriResolver.class);
private static final Logger LOG = LoggerFactory.getLogger(XsltUriResolver.class);

private final ClassResolver resolver;
private final String location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

public abstract class AbstractCamelInvocationHandler implements InvocationHandler {

private static final transient Logger LOG = LoggerFactory.getLogger(CamelInvocationHandler.class);
private static final Logger LOG = LoggerFactory.getLogger(CamelInvocationHandler.class);
private static final List<Method> EXCLUDED_METHODS = new ArrayList<Method>();
private static ExecutorService executorService;
protected final Endpoint endpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
public class BeanComponent extends UriEndpointComponent {

private static final transient Logger LOG = LoggerFactory.getLogger(BeanComponent.class);
private static final Logger LOG = LoggerFactory.getLogger(BeanComponent.class);
// use an internal soft cache for BeanInfo as they are costly to introspect
// for example the bean language using OGNL expression runs much faster reusing the BeanInfo from this cache
private final LRUSoftCache<BeanInfoCacheKey, BeanInfo> cache = new LRUSoftCache<BeanInfoCacheKey, BeanInfo>(1000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* introspection and annotations together with some useful sensible defaults
*/
public class BeanInfo {
private static final transient Logger LOG = LoggerFactory.getLogger(BeanInfo.class);
private static final Logger LOG = LoggerFactory.getLogger(BeanInfo.class);
private static final String CGLIB_CLASS_SEPARATOR = "$$";
private static final List<Method> EXCLUDED_METHODS = new ArrayList<Method>();
private final CamelContext camelContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* Invocation of beans that can handle being serialized.
*/
public class BeanInvocation implements Externalizable {
private static final transient Logger LOG = LoggerFactory.getLogger(BeanInvocation.class);
private static final Logger LOG = LoggerFactory.getLogger(BeanInvocation.class);
private Object[] args;
private MethodBean methodBean;
private transient Method method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @version
*/
public class BeanProcessor extends ServiceSupport implements AsyncProcessor {
private static final transient Logger LOG = LoggerFactory.getLogger(BeanProcessor.class);
private static final Logger LOG = LoggerFactory.getLogger(BeanProcessor.class);

private boolean multiParameterArray;
private String method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* @version
*/
public class MethodInfo {
private static final transient Logger LOG = LoggerFactory.getLogger(MethodInfo.class);
private static final Logger LOG = LoggerFactory.getLogger(MethodInfo.class);

private CamelContext camelContext;
private Class<?> type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* consumer is available, but actual consumer execution will happen concurrently.
*/
public class DirectBlockingProducer extends DefaultAsyncProducer {
private static final transient Logger LOG = LoggerFactory.getLogger(DirectBlockingProducer.class);
private static final Logger LOG = LoggerFactory.getLogger(DirectBlockingProducer.class);
private final DirectEndpoint endpoint;

public DirectBlockingProducer(DirectEndpoint endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @version
*/
public class DirectProducer extends DefaultAsyncProducer {
private static final transient Logger LOG = LoggerFactory.getLogger(DirectProducer.class);
private static final Logger LOG = LoggerFactory.getLogger(DirectProducer.class);
private final DirectEndpoint endpoint;

public DirectProducer(DirectEndpoint endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* consumer is available, but actual consumer execution will happen concurrently.
*/
public class DirectVmBlockingProducer extends DefaultAsyncProducer {
private static final transient Logger LOG = LoggerFactory.getLogger(DirectVmBlockingProducer.class);
private static final Logger LOG = LoggerFactory.getLogger(DirectVmBlockingProducer.class);
private final DirectVmEndpoint endpoint;

public DirectVmBlockingProducer(DirectVmEndpoint endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public final class DirectVmProcessor extends DelegateAsyncProcessor {

private static final transient Logger LOG = LoggerFactory.getLogger(DirectVmProcessor.class);
private static final Logger LOG = LoggerFactory.getLogger(DirectVmProcessor.class);
private final DirectVmEndpoint endpoint;

public DirectVmProcessor(Processor processor, DirectVmEndpoint endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public class DirectVmProducer extends DefaultAsyncProducer {

private static final transient Logger LOG = LoggerFactory.getLogger(DirectVmProducer.class);
private static final Logger LOG = LoggerFactory.getLogger(DirectVmProducer.class);
private DirectVmEndpoint endpoint;

public DirectVmProducer(DirectVmEndpoint endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* Exclude take precedence over includes. If a file match both exclude and include it will be regarded as excluded.
*/
public class AntPathMatcherFileFilter implements FileFilter {
private static final transient Logger LOG = LoggerFactory.getLogger(AntPathMatcherFileFilter.class);
private static final Logger LOG = LoggerFactory.getLogger(AntPathMatcherFileFilter.class);

private AntPathMatcher matcher = new AntPathMatcher();
private String[] excludes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* File operations for {@link java.io.File}.
*/
public class FileOperations implements GenericFileOperations<File> {
private static final transient Logger LOG = LoggerFactory.getLogger(FileOperations.class);
private static final Logger LOG = LoggerFactory.getLogger(FileOperations.class);
private FileEndpoint endpoint;

public FileOperations() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* provide a File for transfer.
*/
public class GenericFile<T> implements WrappedFile<T> {
private static final transient Logger LOG = LoggerFactory.getLogger(GenericFile.class);
private static final Logger LOG = LoggerFactory.getLogger(GenericFile.class);

private String endpointPath;
private String fileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
*/
public abstract class GenericFileEndpoint<T> extends ScheduledPollEndpoint implements BrowsableEndpoint {

protected static final transient String DEFAULT_STRATEGYFACTORY_CLASS = "org.apache.camel.component.file.strategy.GenericFileProcessStrategyFactory";
protected static final transient int DEFAULT_IDEMPOTENT_CACHE_SIZE = 1000;
protected static final String DEFAULT_STRATEGYFACTORY_CLASS = "org.apache.camel.component.file.strategy.GenericFileProcessStrategyFactory";
protected static final int DEFAULT_IDEMPOTENT_CACHE_SIZE = 1000;

protected final transient Logger log = LoggerFactory.getLogger(getClass());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* changed by scanning the file at different intervals (to detect changes).
*/
public class FileChangedExclusiveReadLockStrategy extends MarkerFileExclusiveReadLockStrategy {
private static final transient Logger LOG = LoggerFactory.getLogger(FileChangedExclusiveReadLockStrategy.class);
private static final Logger LOG = LoggerFactory.getLogger(FileChangedExclusiveReadLockStrategy.class);
private long timeout;
private long checkInterval = 1000;
private long minLength = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* consuming the file its not currently in progress of being written by third party.
*/
public class FileLockExclusiveReadLockStrategy extends MarkerFileExclusiveReadLockStrategy {
private static final transient Logger LOG = LoggerFactory.getLogger(FileLockExclusiveReadLockStrategy.class);
private static final Logger LOG = LoggerFactory.getLogger(FileLockExclusiveReadLockStrategy.class);
private long timeout;
private long checkInterval = 1000;
private FileLock lock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* consuming the file its not currently in progress of being written by third party.
*/
public class GenericFileRenameExclusiveReadLockStrategy<T> implements GenericFileExclusiveReadLockStrategy<T> {
private static final transient Logger LOG = LoggerFactory.getLogger(GenericFileRenameExclusiveReadLockStrategy.class);
private static final Logger LOG = LoggerFactory.getLogger(GenericFileRenameExclusiveReadLockStrategy.class);
private long timeout;
private long checkInterval;
private LoggingLevel readLockLoggingLevel = LoggingLevel.WARN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* This is the default behavior in Camel 1.x.
*/
public class MarkerFileExclusiveReadLockStrategy implements GenericFileExclusiveReadLockStrategy<File> {
private static final transient Logger LOG = LoggerFactory.getLogger(MarkerFileExclusiveReadLockStrategy.class);
private static final Logger LOG = LoggerFactory.getLogger(MarkerFileExclusiveReadLockStrategy.class);

@Override
public void prepareOnStartup(GenericFileOperations<File> operations, GenericFileEndpoint<File> endpoint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
* @version
*/
public class MockEndpoint extends DefaultEndpoint implements BrowsableEndpoint {
private static final transient Logger LOG = LoggerFactory.getLogger(MockEndpoint.class);
private static final Logger LOG = LoggerFactory.getLogger(MockEndpoint.class);
// must be volatile so changes is visible between the thread which performs the assertions
// and the threads which process the exchanges when routing messages in Camel
protected volatile Processor reporter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class PropertiesComponent extends DefaultComponent {
*/
public static final String OVERRIDE_PROPERTIES = PropertiesComponent.class.getName() + ".OverrideProperties";

private static final transient Logger LOG = LoggerFactory.getLogger(PropertiesComponent.class);
private static final Logger LOG = LoggerFactory.getLogger(PropertiesComponent.class);
private final Map<CacheKey, Properties> cacheMap = new LRUSoftCache<CacheKey, Properties>(1000);
private PropertiesResolver propertiesResolver = new DefaultPropertiesResolver();
private PropertiesParser propertiesParser = new DefaultPropertiesParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* @version
*/
public class SedaConsumer extends ServiceSupport implements Consumer, Runnable, ShutdownAware, SuspendableService {
private static final transient Logger LOG = LoggerFactory.getLogger(SedaConsumer.class);
private static final Logger LOG = LoggerFactory.getLogger(SedaConsumer.class);

private final AtomicInteger taskCount = new AtomicInteger();
private volatile CountDownLatch latch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
@ManagedResource(description = "Managed SedaEndpoint")
@UriEndpoint(scheme = "seda", consumerClass = SedaConsumer.class)
public class SedaEndpoint extends DefaultEndpoint implements BrowsableEndpoint, MultipleConsumersSupport {
private static final transient Logger LOG = LoggerFactory.getLogger(SedaEndpoint.class);
private static final Logger LOG = LoggerFactory.getLogger(SedaEndpoint.class);
private volatile BlockingQueue<Exchange> queue;
private final Set<SedaProducer> producers = new CopyOnWriteArraySet<SedaProducer>();
private final Set<SedaConsumer> consumers = new CopyOnWriteArraySet<SedaConsumer>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @version
*/
public class TestEndpoint extends MockEndpoint {
private static final transient Logger LOG = LoggerFactory.getLogger(TestEndpoint.class);
private static final Logger LOG = LoggerFactory.getLogger(TestEndpoint.class);
private final Endpoint expectedMessageEndpoint;
@UriParam
private long timeout = 2000L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @version
*/
public class TimerConsumer extends DefaultConsumer {
private static final transient Logger LOG = LoggerFactory.getLogger(TimerConsumer.class);
private static final Logger LOG = LoggerFactory.getLogger(TimerConsumer.class);
private final TimerEndpoint endpoint;
private volatile TimerTask task;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class ValidatorComponent extends DefaultComponent {

private static final transient Logger LOG = LoggerFactory.getLogger(ValidatorComponent.class);
private static final Logger LOG = LoggerFactory.getLogger(ValidatorComponent.class);

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
final String resourceUri = remaining;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class XsltComponent extends DefaultComponent {

private static final String SAXON_TRANSFORMER_FACTORY_CLASS_NAME = "net.sf.saxon.TransformerFactoryImpl";
private static final transient Logger LOG = LoggerFactory.getLogger(XsltComponent.class);
private static final Logger LOG = LoggerFactory.getLogger(XsltComponent.class);
private XmlConverter xmlConverter;
private URIResolver uriResolver;
private boolean contentCache = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@ManagedResource(description = "Managed XsltEndpoint")
public class XsltEndpoint extends ProcessorEndpoint {

private static final transient Logger LOG = LoggerFactory.getLogger(XsltEndpoint.class);
private static final Logger LOG = LoggerFactory.getLogger(XsltEndpoint.class);

private XsltBuilder xslt;
private String resourceUri;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/
@Converter
public final class IOConverter {
private static final transient Logger LOG = LoggerFactory.getLogger(IOConverter.class);
private static final Logger LOG = LoggerFactory.getLogger(IOConverter.class);

/**
* Utility classes should not have a public constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
@Converter
public final class NIOConverter {
private static final transient Logger LOG = LoggerFactory.getLogger(NIOConverter.class);
private static final Logger LOG = LoggerFactory.getLogger(NIOConverter.class);

/**
* Utility classes should not have a public constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

@Converter
public final class TimePatternConverter {
private static final transient Logger LOG = LoggerFactory.getLogger(TimePatternConverter.class);
private static final Logger LOG = LoggerFactory.getLogger(TimePatternConverter.class);
private static final String NUMBERS_ONLY_STRING_PATTERN = "^[-]?(\\d)+$";
private static final String REPLACEMENT_PATTERN = "[our|inute|econd](s)?";
private static final String HOUR_REGEX_PATTERN = "((\\d)*(\\d))[h|H]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
@Converter
public class StaxConverter {
private static final transient Logger LOG = LoggerFactory.getLogger(XmlErrorListener.class);
private static final Logger LOG = LoggerFactory.getLogger(XmlErrorListener.class);

// TODO: do not use a cxf system property
// TODO: make higher default pool size as 20 is not much in high end systems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public class XmlErrorListener implements ErrorListener {

private static final transient Logger LOG = LoggerFactory.getLogger(XmlErrorListener.class);
private static final Logger LOG = LoggerFactory.getLogger(XmlErrorListener.class);

@Override
public void warning(TransformerException e) throws TransformerException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class CachedOutputStream extends OutputStream {
public static final String TEMP_DIR = "CamelCachedOutputStreamOutputDirectory";
@Deprecated
public static final String CIPHER_TRANSFORMATION = "CamelCachedOutputStreamCipherTransformation";
private static final transient Logger LOG = LoggerFactory.getLogger(CachedOutputStream.class);
private static final Logger LOG = LoggerFactory.getLogger(CachedOutputStream.class);

private final StreamCachingStrategy strategy;
private OutputStream currentStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ActiveMQUuidGenerator implements UuidGenerator {

// use same JVM property name as ActiveMQ
public static final String PROPERTY_IDGENERATOR_PORT = "activemq.idgenerator.port";
private static final transient Logger LOG = LoggerFactory.getLogger(ActiveMQUuidGenerator.class);
private static final Logger LOG = LoggerFactory.getLogger(ActiveMQUuidGenerator.class);
private static final String UNIQUE_STUB;
private static int instanceCount;
private static String hostName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* @version
*/
public class CamelPostProcessorHelper implements CamelContextAware {
private static final transient Logger LOG = LoggerFactory.getLogger(CamelPostProcessorHelper.class);
private static final Logger LOG = LoggerFactory.getLogger(CamelPostProcessorHelper.class);

@XmlTransient
private CamelContext camelContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @version
*/
public class ConsumerCache extends ServiceSupport {
private static final transient Logger LOG = LoggerFactory.getLogger(ConsumerCache.class);
private static final Logger LOG = LoggerFactory.getLogger(ConsumerCache.class);
private final CamelContext camelContext;
private final Map<String, PollingConsumer> consumers;
private final Object source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
public class DefaultCamelBeanPostProcessor {

protected static final transient Logger LOG = LoggerFactory.getLogger(DefaultCamelBeanPostProcessor.class);
protected static final Logger LOG = LoggerFactory.getLogger(DefaultCamelBeanPostProcessor.class);
protected CamelPostProcessorHelper camelPostProcessorHelper;
protected CamelContext camelContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @version
*/
public abstract class DefaultComponent extends ServiceSupport implements Component {
private static final transient Logger LOG = LoggerFactory.getLogger(DefaultComponent.class);
private static final Logger LOG = LoggerFactory.getLogger(DefaultComponent.class);

private CamelContext camelContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class DefaultComponentResolver implements ComponentResolver {

public static final String RESOURCE_PATH = "META-INF/services/org/apache/camel/component/";
private static final transient Logger LOG = LoggerFactory.getLogger(DefaultComponentResolver.class);
private static final Logger LOG = LoggerFactory.getLogger(DefaultComponentResolver.class);
private FactoryFinder factoryFinder;

public Component resolveComponent(String name, CamelContext context) {
Expand Down
Loading