fix compilation

88af59697e removed XMageStatsResource, but it's still referenced in code
This commit is contained in:
Neil Gentleman 2016-10-30 22:46:06 -07:00
parent 72c13b9102
commit cfad0f270a
2 changed files with 32 additions and 1 deletions

View file

@ -141,7 +141,7 @@
<basedir>${project.basedir}/src/main/java</basedir>
</source>
</sources>
<complianceLevel>1.6</complianceLevel>
<complianceLevel>1.7</complianceLevel>
</configuration>
<executions>
<execution>

View file

@ -0,0 +1,31 @@
package com.xmage.ws.resource;
import com.xmage.core.entity.model.ServerStats;
import com.xmage.ws.model.DomainErrors;
import com.xmage.ws.representer.XMageStatsRepresenter;
import com.xmage.ws.representer.Representer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class XMageStatsResource extends DefaultResource<ServerStats> {
private static final Logger logger = LoggerFactory.getLogger(XMageStatsResource.class);
private static final Representer<ServerStats> defaultRepresenter = new XMageStatsRepresenter();
public XMageStatsResource() {
super(defaultRepresenter);
}
public Resource getAll() {
error = DomainErrors.Errors.STATUS_NOT_FOUND;
return this;
}
@Override
public String getName() {
return "serverStats";
}
}