1 15 package org.apache.hivemind.internal; 16 17 import java.util.Locale ; 18 19 import org.apache.hivemind.ApplicationRuntimeException; 20 import org.apache.hivemind.ClassResolver; 21 import org.apache.hivemind.ErrorHandler; 22 import org.apache.hivemind.Locatable; 23 import org.apache.hivemind.Messages; 24 25 38 public interface Module extends Locatable 39 { 40 43 public String getModuleId(); 44 45 53 public boolean containsService(Class serviceInterface); 54 55 65 public Object getService(String serviceId, Class serviceInterface); 66 67 74 public Object getService(Class serviceInterface); 75 76 85 86 public ServicePoint getServicePoint(String serviceId); 87 88 97 public Object getConfiguration(String configurationId); 98 99 103 public ClassResolver getClassResolver(); 104 105 117 118 public Class resolveType(String type); 119 120 125 126 public Messages getMessages(); 127 128 131 public ServiceModelFactory getServiceModelFactory(String name); 132 133 136 public Locale getLocale(); 137 138 141 142 public ErrorHandler getErrorHandler(); 143 144 147 public RegistryInfrastructure getRegistry(); 148 149 } | Popular Tags |