1 15 package org.apache.hivemind.definition.impl; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.definition.ImplementationConstructor; 19 import org.apache.hivemind.definition.ImplementationDefinition; 20 import org.apache.hivemind.definition.ModuleDefinition; 21 22 27 public class ImplementationDefinitionImpl extends ExtensionDefinitionImpl implements 28 ImplementationDefinition 29 { 30 private String _serviceModel; 31 32 private ImplementationConstructor _implementationConstructor; 33 34 private boolean _isDefault; 35 36 public ImplementationDefinitionImpl(ModuleDefinition module) 37 { 38 super(module); 39 } 40 41 public ImplementationDefinitionImpl(ModuleDefinition module, Location location, 42 ImplementationConstructor implementationConstructor, String serviceModel, boolean isDefault) 43 { 44 super(module, location); 45 _implementationConstructor = implementationConstructor; 46 _serviceModel = serviceModel; 47 _isDefault = isDefault; 48 } 49 50 53 public String getServiceModel() 54 { 55 return _serviceModel; 56 } 57 58 61 public void setServiceModel(String serviceModel) 62 { 63 _serviceModel = serviceModel; 64 } 65 66 69 public boolean isDefault() 70 { 71 return _isDefault; 72 } 73 74 78 public void setDefault(boolean isDefault) 79 { 80 _isDefault = isDefault; 81 } 82 83 86 public ImplementationConstructor getServiceConstructor() 87 { 88 return _implementationConstructor; 89 } 90 91 95 public void setImplementationConstructor(ImplementationConstructor serviceConstructor) 96 { 97 _implementationConstructor = serviceConstructor; 98 } 99 100 } 101 | Popular Tags |