You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by sb...@apache.org on 2016/10/22 20:42:48 UTC
[4/5] incubator-streams git commit: remove unnecessary class
remove unnecessary class
Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/02d55cdc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/02d55cdc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/02d55cdc
Branch: refs/heads/master
Commit: 02d55cdc091eeb8b457e729a7cbd0a821e60d79d
Parents: a2b29f0
Author: Steve Blackmon @steveblackmon <sb...@apache.org>
Authored: Sat Oct 22 15:29:06 2016 -0500
Committer: Steve Blackmon @steveblackmon <sb...@apache.org>
Committed: Sat Oct 22 15:40:25 2016 -0500
----------------------------------------------------------------------
.../twitter/provider/TwitterConfigurator.java | 71 --------------------
1 file changed, 71 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/02d55cdc/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterConfigurator.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterConfigurator.java b/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterConfigurator.java
deleted file mode 100644
index 4b7b3ef..0000000
--- a/streams-contrib/streams-provider-twitter/src/main/java/org/apache/streams/twitter/provider/TwitterConfigurator.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * 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
- *
- * 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.streams.twitter.provider;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.typesafe.config.Config;
-import com.typesafe.config.ConfigRenderOptions;
-import org.apache.streams.twitter.TwitterConfiguration;
-import org.apache.streams.twitter.TwitterStreamConfiguration;
-import org.apache.streams.twitter.TwitterUserInformationConfiguration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.IOException;
-
-/**
- * This class resolves TwitterConfiguration from typesafe config
- *
- * Deprecated: use ComponentConfigurator.detectConfig() instead
- */
-@Deprecated
-public class TwitterConfigurator {
-
- private final static Logger LOGGER = LoggerFactory.getLogger(TwitterConfigurator.class);
- private final static ObjectMapper mapper = new ObjectMapper();
-
- public static TwitterConfiguration detectTwitterConfiguration(Config config) {
- try {
- return mapper.readValue(config.root().render(ConfigRenderOptions.concise()), TwitterConfiguration.class);
- } catch (IOException e) {
- e.printStackTrace();
- return null;
- }
- }
-
- public static TwitterStreamConfiguration detectTwitterStreamConfiguration(Config config) {
-
- try {
- return mapper.readValue(config.root().render(ConfigRenderOptions.concise()), TwitterStreamConfiguration.class);
- } catch (IOException e) {
- e.printStackTrace();
- return null;
- }
- }
-
- public static TwitterUserInformationConfiguration detectTwitterUserInformationConfiguration(Config config) {
- try {
- return mapper.readValue(config.root().render(ConfigRenderOptions.concise()), TwitterUserInformationConfiguration.class);
- } catch (IOException e) {
- e.printStackTrace();
- return null;
- }
- }
-
-}