1 10 11 package org.mule.umo.manager; 12 13 import org.mule.impl.internal.notifications.NotificationException; 14 import org.mule.umo.UMOException; 15 import org.mule.umo.UMOInterceptorStack; 16 import org.mule.umo.endpoint.UMOEndpoint; 17 import org.mule.umo.lifecycle.InitialisationException; 18 import org.mule.umo.lifecycle.Lifecycle; 19 import org.mule.umo.model.UMOModel; 20 import org.mule.umo.provider.UMOConnector; 21 import org.mule.umo.security.UMOSecurityManager; 22 import org.mule.umo.transformer.UMOTransformer; 23 import org.mule.util.queue.QueueManager; 24 25 import javax.transaction.TransactionManager ; 26 27 import java.util.Map ; 28 29 36 public interface UMOManager extends Lifecycle 37 { 38 44 Object getProperty(Object key); 45 46 50 UMOConnector lookupConnector(String logicalName); 51 52 59 String lookupEndpointIdentifier(String logicalName, String defaultName); 60 61 68 UMOEndpoint lookupEndpoint(String logicalName); 69 70 76 UMOTransformer lookupTransformer(String name); 77 78 83 void registerConnector(UMOConnector connector) throws UMOException; 84 85 90 void unregisterConnector(String connectorName) throws UMOException; 91 92 98 void registerEndpointIdentifier(String logicalName, String endpoint) throws InitialisationException; 99 100 105 void unregisterEndpointIdentifier(String logicalName); 106 107 112 void registerEndpoint(UMOEndpoint endpoint) throws InitialisationException; 113 114 119 void unregisterEndpoint(String endpointName); 120 121 126 void registerTransformer(UMOTransformer transformer) throws InitialisationException; 127 128 133 void unregisterTransformer(String transformerName); 134 135 141 void setProperty(Object key, Object value); 142 143 149 void setTransactionManager(TransactionManager manager) throws Exception ; 150 151 158 TransactionManager getTransactionManager(); 159 160 165 UMOModel getModel(); 166 167 172 void setModel(UMOModel model) throws UMOException; 173 174 179 Map getProperties(); 180 181 187 Map getConnectors(); 188 189 194 Map getEndpointIdentifiers(); 195 196 202 Map getEndpoints(); 203 204 210 Map getTransformers(); 211 212 219 void registerInterceptorStack(String name, UMOInterceptorStack stack); 220 221 228 UMOInterceptorStack lookupInterceptorStack(String name); 229 230 235 boolean isStarted(); 236 237 242 boolean isInitialised(); 243 244 249 long getStartDate(); 250 251 257 void registerAgent(UMOAgent agent) throws UMOException; 258 259 266 UMOAgent lookupAgent(String name); 267 268 274 UMOAgent unregisterAgent(String name) throws UMOException; 275 276 286 void registerListener(UMOServerNotificationListener l) throws NotificationException; 287 288 301 void registerListener(UMOServerNotificationListener l, String resourceIdentifier) 302 throws NotificationException; 303 304 310 void unregisterListener(UMOServerNotificationListener l); 311 312 317 void fireNotification(UMOServerNotification notification); 318 319 325 void setContainerContext(UMOContainerContext context) throws UMOException; 326 327 333 UMOContainerContext getContainerContext(); 334 335 341 void setId(String id); 342 343 349 String getId(); 350 351 359 void setSecurityManager(UMOSecurityManager securityManager) throws InitialisationException; 360 361 368 UMOSecurityManager getSecurityManager(); 369 370 378 UMOWorkManager getWorkManager(); 379 380 388 void setWorkManager(UMOWorkManager workManager); 389 390 396 void setQueueManager(QueueManager queueManager); 397 398 404 QueueManager getQueueManager(); 405 } 406 | Popular Tags |