1 15 package org.apache.hivemind.definition.impl; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.definition.ExtensionDefinition; 19 import org.apache.hivemind.definition.ModuleDefinition; 20 import org.apache.hivemind.util.Defense; 21 22 27 public class ExtensionDefinitionImpl implements ExtensionDefinition 28 { 29 private Location _location; 30 private ModuleDefinition _module; 31 32 public ExtensionDefinitionImpl(ModuleDefinition module) 33 { 34 Defense.notNull(module, "module"); 35 _module = module; 36 } 37 38 public ExtensionDefinitionImpl(ModuleDefinition module, Location location) 39 { 40 this(module); 41 _location = location; 42 } 43 44 47 public String getModuleId() 48 { 49 return _module.getId(); 50 } 51 52 55 public ModuleDefinition getModule() 56 { 57 return _module; 58 } 59 60 63 public Location getLocation() 64 { 65 return _location; 66 } 67 68 71 public void setLocation(Location location) 72 { 73 _location = location; 74 } 75 76 } 77 | Popular Tags |