1 10 11 package org.mule.umo.model; 12 13 import org.mule.umo.UMOComponent; 14 import org.mule.umo.UMODescriptor; 15 import org.mule.umo.UMOException; 16 import org.mule.umo.UMOSession; 17 import org.mule.umo.lifecycle.Initialisable; 18 import org.mule.umo.lifecycle.Lifecycle; 19 import org.mule.umo.lifecycle.UMOLifecycleAdapterFactory; 20 21 import java.beans.ExceptionListener ; 22 import java.util.Iterator ; 23 import java.util.List ; 24 25 33 public interface UMOModel extends Lifecycle, Initialisable 34 { 35 36 43 void setName(String name); 44 45 52 String getName(); 53 54 60 String getType(); 61 62 68 UMOEntryPointResolver getEntryPointResolver(); 69 70 77 void setEntryPointResolver(UMOEntryPointResolver entryPointResolver); 78 79 86 UMOComponent registerComponent(UMODescriptor descriptor) throws UMOException; 87 88 95 void unregisterComponent(UMODescriptor descriptor) throws UMOException; 96 97 105 boolean isComponentRegistered(String name); 106 107 117 UMOLifecycleAdapterFactory getLifecycleAdapterFactory(); 118 119 127 void setLifecycleAdapterFactory(UMOLifecycleAdapterFactory lifecycleAdapterFactory); 128 129 136 UMOSession getComponentSession(String muleName); 137 138 146 void setComponents(List descriptors) throws UMOException; 147 148 157 ExceptionListener getExceptionListener(); 158 159 168 void setExceptionListener(ExceptionListener listener); 169 170 178 UMODescriptor getDescriptor(String name); 179 180 188 UMOComponent getComponent(String name); 189 190 199 void stopComponent(String name) throws UMOException; 200 201 209 void startComponent(String name) throws UMOException; 210 211 224 void pauseComponent(String name) throws UMOException; 225 226 234 void resumeComponent(String name) throws UMOException; 235 236 241 Iterator getComponentNames(); 242 } 243 | Popular Tags |