X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=webservices%2Fcompbio%2Fws%2Fserver%2FAAConWS.java;h=1ffbbf342a735d5e4bf30e4ee7af941fcb352a47;hb=021b24f125d8b1e8390e99b4a835469dabdd7be1;hp=095bc4ede36e4669182c60a20c8329cf1024c8d0;hpb=9d860c3793c6812f643caa01fc80a0036fa3fe2b;p=jabaws.git diff --git a/webservices/compbio/ws/server/AAConWS.java b/webservices/compbio/ws/server/AAConWS.java index 095bc4e..1ffbbf3 100644 --- a/webservices/compbio/ws/server/AAConWS.java +++ b/webservices/compbio/ws/server/AAConWS.java @@ -51,10 +51,12 @@ public class AAConWS implements SequenceAnnotation { private static final PresetManager aaconPresets = Util .getPresets(AACon.class); + private static final LimitsManager limitMan = compbio.engine.client.Util + .getLimits(new AACon().getType()); + ConfiguredExecutable init(List sequences) throws JobSubmissionException { AACon aacon = new AACon(); - aacon.setInput("fasta.in").setOutput("aacon.out"); return Configurator.configureExecutable(aacon, sequences); } @@ -81,12 +83,16 @@ public class AAConWS implements SequenceAnnotation { @Override public Limit getLimit(String presetName) { - return new AACon().getLimit(presetName); + if (limitMan == null) { + // Limit is not defined + return null; + } + return limitMan.getLimitByName(presetName); } @Override public LimitsManager getLimits() { - return new AACon().getLimits(); + return limitMan; } @Override