You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ie...@apache.org on 2008/10/02 22:47:48 UTC

svn commit: r701237 - /incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java

Author: ieb
Date: Thu Oct  2 13:47:47 2008
New Revision: 701237

URL: http://svn.apache.org/viewvc?rev=701237&view=rev
Log:
SHINDIG-638

Patch from Adam Winer
  Applying the remainder of the patches to fix the build.

I have brought the sample container up to verify that he modules load correctly.

Added:
    incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java

Added: incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java?rev=701237&view=auto
==============================================================================
--- incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java (added)
+++ incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/sample/service/SampleContainerHandlerProvider.java Thu Oct  2 13:47:47 2008
@@ -0,0 +1,38 @@
+/*
+ * 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.shindig.social.sample.service;
+
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+
+import org.apache.shindig.social.opensocial.service.HandlerProvider;
+import org.apache.shindig.social.opensocial.service.PersonHandler;
+import org.apache.shindig.social.opensocial.service.ActivityHandler;
+import org.apache.shindig.social.opensocial.service.AppDataHandler;
+
+public class SampleContainerHandlerProvider extends HandlerProvider {
+
+  @Inject
+  public SampleContainerHandlerProvider(Provider<PersonHandler> personHandlerProvider,
+      Provider<ActivityHandler> activityHandlerProvider,
+      Provider<AppDataHandler> appDataHandlerProvider,
+      Provider<SampleContainerHandler> sampleContainerHandlerProvider) {
+    super(personHandlerProvider, activityHandlerProvider, appDataHandlerProvider);
+    addHandler("samplecontainer", sampleContainerHandlerProvider);
+  }
+}