Coverage Report - org.jtheque.films.services.impl.utils.web.GettersUpdatable
 
Classes in this File Line Coverage Branch Coverage Complexity
GettersUpdatable
0 %
0/6
N/A
1
 
 1  
 package org.jtheque.films.services.impl.utils.web;
 2  
 
 3  
 import org.jtheque.core.managers.update.AbstractUpdatable;
 4  
 import org.jtheque.core.managers.update.Updatable;
 5  
 import org.jtheque.utils.bean.Version;
 6  
 
 7  
 /*
 8  
  * This file is part of JTheque.
 9  
  *
 10  
  * JTheque is free software: you can redistribute it and/or modify
 11  
  * it under the terms of the GNU General Public License as published by
 12  
  * the Free Software Foundation, either version 3 of the License.
 13  
  *
 14  
  * JTheque is distributed in the hope that it will be useful,
 15  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17  
  * GNU General Public License for more details.
 18  
  *
 19  
  * You should have received a copy of the GNU General Public License
 20  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 21  
  */
 22  
 
 23  
 /**
 24  
  * An updatable to keep up to date the web getters.
 25  
  *
 26  
  * @author Baptiste Wicht
 27  
  */
 28  
 public final class GettersUpdatable extends AbstractUpdatable {
 29  0
     private static final Updatable INSTANCE = new GettersUpdatable();
 30  
 
 31  
     /**
 32  
      * Construct a new GettersUpdatable.
 33  
      */
 34  
     private GettersUpdatable() {
 35  0
         super("WebGetters", "updatables.getters");
 36  0
     }
 37  
 
 38  
     @Override
 39  
     public Version getDefaultVersion() {
 40  0
         return new Version("1.0");
 41  
     }
 42  
 
 43  
     @Override
 44  
     public String getVersionsFileURL() {
 45  0
         return "http://jtheque.developpez.com/public/versions/getters.versions";
 46  
     }
 47  
 
 48  
     /**
 49  
      * Return the unique instance of the class.
 50  
      *
 51  
      * @return The unique instance of GettersUpdatable.
 52  
      */
 53  
     public static Updatable getInstance() {
 54  0
         return INSTANCE;
 55  
     }
 56  
 }