Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed ClusterProvider to SchemaProvider

  • Loading branch information...
commit d8e50da6a01f15cedf0e248722de8b793fdf3cc9 1 parent 2a85884
tomek authored
2  ...om/kuprowski/helenos/service/ClusterProvider.java → ...com/kuprowski/helenos/service/SchemaProvider.java
View
@@ -13,7 +13,7 @@
*
* @author tomek
*/
-public interface ClusterProvider {
+public interface SchemaProvider {
String describeClusterName();
2  ...m/kuprowski/helenos/service/AbstractProvider.java → ...rowski/helenos/service/impl/AbstractProvider.java
View
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.kuprowski.helenos.service;
+package com.kuprowski.helenos.service.impl;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.ConsistencyLevelPolicy;
8 ...uprowski/helenos/service/ClusterProviderImpl.java → ...wski/helenos/service/impl/SchemaProviderImpl.java
View
@@ -2,14 +2,14 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.kuprowski.helenos.service;
+package com.kuprowski.helenos.service.impl;
+import com.kuprowski.helenos.service.SchemaProvider;
import com.kuprowski.helenos.types.JsonColumnFamilyDefinition;
import com.kuprowski.helenos.types.JsonKeyspaceDefinition;
import com.kuprowski.helenos.types.qx.QxJsonColumnFamilyDefinition;
import java.util.ArrayList;
import java.util.List;
-import me.prettyprint.cassandra.model.BasicColumnFamilyDefinition;
import me.prettyprint.cassandra.service.ThriftCfDef;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.ddl.ColumnType;
@@ -21,8 +21,8 @@
*
* @author tomek
*/
-@Component("clusterProvider")
-public class ClusterProviderImpl extends AbstractProvider implements ClusterProvider {
+@Component("schemaProvider")
+public class SchemaProviderImpl extends AbstractProvider implements SchemaProvider {
@Override
public String describeClusterName() {
9 src/main/webapp/WEB-INF/context/applicationContext-jsonrpc.xml
View
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<beans default-autowire="byName" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
-
-
-</beans>
8 src/main/webapp/WEB-INF/helenos-servlet.xml
View
@@ -6,10 +6,12 @@
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
- <bean name="/Cluster.json" class="com.googlecode.jsonrpc4j.spring.JsonServiceExporter">
- <property name="service" ref="clusterProvider"/>
- <property name="serviceInterface" value="com.kuprowski.helenos.service.ClusterProvider"/>
+ <bean name="/Schema.json" class="com.googlecode.jsonrpc4j.spring.JsonServiceExporter">
+ <property name="service" ref="schemaProvider"/>
+ <property name="serviceInterface" value="com.kuprowski.helenos.service.SchemaProvider"/>
</bean>
+
+
<mvc:resources mapping="/helenos/**" location="/helenos/" />
</beans>
Please sign in to comment.
Something went wrong with that request. Please try again.