1 package org.apache.maven.plugin.registry; 2 3 import java.io.File ; 4 5 20 21 public class RuntimeInfo 22 { 23 24 private File file; 25 26 private String autoUpdateSourceLevel; 27 28 private String updateIntervalSourceLevel; 29 30 private final PluginRegistry registry; 31 32 public RuntimeInfo( PluginRegistry registry ) 33 { 34 this.registry = registry; 35 } 36 37 public String getAutoUpdateSourceLevel() 38 { 39 if ( autoUpdateSourceLevel == null ) 40 { 41 return registry.getSourceLevel(); 42 } 43 else 44 { 45 return autoUpdateSourceLevel; 46 } 47 } 48 49 public void setAutoUpdateSourceLevel( String autoUpdateSourceLevel ) 50 { 51 this.autoUpdateSourceLevel = autoUpdateSourceLevel; 52 } 53 54 public File getFile() 55 { 56 return file; 57 } 58 59 public void setFile( File file ) 60 { 61 this.file = file; 62 } 63 64 public String getUpdateIntervalSourceLevel() 65 { 66 if ( updateIntervalSourceLevel == null ) 67 { 68 return registry.getSourceLevel(); 69 } 70 else 71 { 72 return updateIntervalSourceLevel; 73 } 74 } 75 76 public void setUpdateIntervalSourceLevel( String updateIntervalSourceLevel ) 77 { 78 this.updateIntervalSourceLevel = updateIntervalSourceLevel; 79 } 80 81 } 82 | Popular Tags |