mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
fix compilation
88af59697e
removed XMageStatsResource, but it's still referenced in code
This commit is contained in:
parent
72c13b9102
commit
cfad0f270a
2 changed files with 32 additions and 1 deletions
|
@ -141,7 +141,7 @@
|
|||
<basedir>${project.basedir}/src/main/java</basedir>
|
||||
</source>
|
||||
</sources>
|
||||
<complianceLevel>1.6</complianceLevel>
|
||||
<complianceLevel>1.7</complianceLevel>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue