streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robdouglas <>
Subject [GitHub] incubator-streams pull request: Streams 68,218
Date Mon, 17 Nov 2014 15:43:35 GMT
Github user robdouglas commented on a diff in the pull request:
    --- Diff: streams-components/streams-converters/src/main/java/org/apache/streams/converter/
    @@ -0,0 +1,167 @@
    +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
    +Unless required by applicable law or agreed to in writing,
    +software distributed under the License is distributed on an
    +KIND, either express or implied.  See the License for the
    +specific language governing permissions and limitations
    +under the License.
    +package org.apache.streams.converter;
    +import org.apache.streams.core.StreamsDatum;
    +import org.apache.streams.pojo.json.Activity;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +import java.util.List;
    + * ActivityConverterProcessor is a utility processor for converting any datum document
    + * to an Activity.
    + *
    + * By default it will handle string json and objectnode representation of existing Activities.
    + *
    + * Implementations can add DocumentClassifiers and ActivityConverterResolvers to the
    + * to ensure additional ActivityConverters will be resolved and applied.
    + *
    + * A DocumentClassifier's reponsibility is to recognize document formats and label them,
    + * a jackson-compatible POJO class.
    + *
    + * An ActivityConverterResolver's reponsibility is to identify ActivityConverter implementations
    + * capable of converting a raw document associated with that POJO class into an activity.
    + *
    + */
    +public class ActivityConverterProcessor extends TypeConverterProcessor {
    +    private final static Logger LOGGER = LoggerFactory.getLogger(ActivityConverterProcessor.class);
    +    protected ActivityConverterProcessorConfiguration configuration;
    +    private List<DocumentClassifier> classifiers;
    +    private List<ActivityConverterResolver> resolvers;
    +    public ActivityConverterProcessor() {
    +        super(Activity.class);
    --- End diff --
    Instead of duplicating these three lines, could you call 'this(null)'?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message