1 19 package org.sample.registry.model; 20 21 import org.netbeans.modules.xml.xam.Nameable; 22 import org.sample.registry.model.impl.Reference; 23 24 public interface Service extends ReferenceableRegistryComponent, Nameable<RegistryComponent> 25 { 26 public static final String SERVICE_TYPE_PROPERTY = "type"; 27 public static final String CAPACITY_PROPERTY = "capacity"; 28 public static final String SERVICE_PROVIDER_PROPERTY = "provider"; 29 30 Reference<ServiceType> getServiceType(); 31 void setServiceType(Reference<ServiceType> type); 32 33 Integer getCapacity(); 34 void setCapacity(Integer capacity); 35 36 ServiceProvider getProvider(); 37 void setProvider(ServiceProvider provider); 38 } 39 | Popular Tags |