1 19 20 28 29 package org.netbeans.modules.websvc.core.wseditor.spi; 30 31 import java.util.HashSet ; 32 import java.util.Set ; 33 34 38 public class WSEditorProviderRegistry { 39 40 static WSEditorProviderRegistry registry = new WSEditorProviderRegistry(); 41 42 private Set <WSEditorProvider> editors = new HashSet <WSEditorProvider>(); 43 44 47 private WSEditorProviderRegistry() { 48 } 49 50 public static WSEditorProviderRegistry getDefault(){ 51 return registry; 52 } 53 54 public void register(WSEditorProvider provider){ 55 editors.add(provider); 56 } 57 58 public void unregister(WSEditorProvider provider){ 59 editors.remove(provider); 60 } 61 62 public Set <WSEditorProvider> getEditorProviders(){ 63 return editors; 64 } 65 } 66 | Popular Tags |