1 13 package info.magnolia.cms.module; 14 15 import info.magnolia.cms.core.Content; 16 17 18 24 25 public interface Module { 26 27 30 int REGISTER_STATE_NONE = 0; 31 32 35 int REGISTER_STATE_INSTALLATION = 1; 36 37 40 int REGISTER_STATE_NEW_VERSION = 2; 41 42 48 void init(Content configNode) throws InvalidConfigException, InitializationException; 49 50 57 void register(ModuleDefinition def, Content moduleNode, int registerState) throws RegisterException; 58 59 64 void unregister(ModuleDefinition def, Content moduleNode); 65 66 69 void destroy(); 70 71 75 boolean isInitialized(); 76 77 81 boolean isRestartNeeded(); 82 83 87 String getName(); 88 89 92 ModuleDefinition getModuleDefinition(); 93 94 } | Popular Tags |