public class CodeExitHandlerRegistry extends Object implements ICodeExitHandlerRegistry
ICodeExitHandler instances.
An ICodeExitHandler can handle a CodeExit for a certain type.
The handler for the type is looked up here.
| Modifier and Type | Method and Description |
|---|---|
static ICodeExitHandlerRegistry |
get() |
String[] |
getCodeExitHandlerTypes()
The registered
ICodeExitHandler types. |
ICodeExitHandler |
lookupCodeExitHandler(String type)
|
void |
registerCodeExitHandler(String type,
ICodeExitHandler handler)
Register an
ICodeExitHandler for type type. |
static void |
set(ICodeExitHandlerRegistry registry) |
public static ICodeExitHandlerRegistry get()
public static void set(ICodeExitHandlerRegistry registry)
public String[] getCodeExitHandlerTypes()
ICodeExitHandlerRegistryICodeExitHandler types.getCodeExitHandlerTypes in interface ICodeExitHandlerRegistryICodeExitHandler types.public ICodeExitHandler lookupCodeExitHandler(String type)
ICodeExitHandlerRegistrylookupCodeExitHandler in interface ICodeExitHandlerRegistrytype - The type of handler we are looking for.ICodeExitHandler that can interpret a
CodeExit of type type.public void registerCodeExitHandler(String type, ICodeExitHandler handler)
ICodeExitHandlerRegistryICodeExitHandler for type type.registerCodeExitHandler in interface ICodeExitHandlerRegistrytype - The type to be interpreted by the ICodeExitHandler.handler - The ICodeExitHandler that is able to interpret
typeCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.