Commit 0152dc41 authored by Michel Dirix's avatar Michel Dirix

Remove unused code

parent 68a5bff8
......@@ -287,11 +287,6 @@
<artifactId>jdom</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>net.unto.twitter</groupId>
<artifactId>java-twitter</artifactId>
<version>0.9-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
......
/**
* EasySOA
*
* Copyright (C) 2011-2012 Inria, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* Contact: frascati@ow2.org
*
* Author: Michel Dirix
*
* Contributor(s):
*
*/
package org.easysoa.api;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import org.osoa.sca.annotations.Service;
/**
*
* @author dirix
*/
@Service
public interface SocialNetwork {
@GET
@Path("/statuses/update/status={status}")
void postOnTwitter(@PathParam("status")String message, String userName, String password);
}
/**
* EasySOA
*
* Copyright (C) 2011-2012 Inria, University of Lille 1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* Contact: frascati@ow2.org
*
* Author: Michel Dirix
*
* Contributor(s):
*
*/
package org.easysoa.impl;
import org.easysoa.api.SocialNetwork;
import org.osoa.sca.annotations.Scope;
import net.unto.twitter.Api;
/**
*
* @author dirix
*/
@Scope("COMPOSITE")
public class SocialNetworkImpl implements SocialNetwork{
@Override
public void postOnTwitter(String message, String userName, String password) {
Api api = Api.builder().username(userName).password(password).build();
api.updateStatus(message).build().post();
}
}
......@@ -39,7 +39,6 @@
<reference name="connection" target="Connection/connection" />
<reference name="friends" target="Friends/friends" />
<reference name="serviceManager" target="ServiceManager/serviceManager" />
<reference name="socialNetwork" target="SocialNetwork/socialNetwork" />
<reference name="modelAccess" target="ModelAccess/modelAccess" />
<reference name="compositeTemplates" target="TemplateProcessor/processor" />
<reference name="implementations" target="ImplementationsProcessor/processor" />
......@@ -110,13 +109,6 @@
</reference>
</component>
<component name="SocialNetwork">
<implementation.java class="org.easysoa.impl.SocialNetworkImpl" />
<service name="socialNetwork">
<interface.java interface="org.easysoa.api.SocialNetwork" />
</service>
</component>
<component name="ModelAccess">
<implementation.java class="org.easysoa.jpa.ModelAccessImpl" />
<service name="modelAccess">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment