public class DefaultModuleCreatorRegistry extends Object implements ModuleCreatorRegistry
Constructor and Description |
---|
DefaultModuleCreatorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addCreator(ModuleCreator creator)
Add a creator to the registry.
|
void |
addCreators(List<ModuleCreator> creators)
Add a list of creators.
|
ModuleCreator |
getCreatorById(String id)
Get a creator given its id.
|
List<ModuleCreator> |
getCreators()
Get the list of creators.
|
void |
removeAll()
Remove all registered creators from the registry.
|
public List<ModuleCreator> getCreators()
getCreators
in interface ModuleCreatorRegistry
public ModuleCreator getCreatorById(String id)
getCreatorById
in interface ModuleCreatorRegistry
id
- the id of the creatorpublic void addCreators(List<ModuleCreator> creators)
addCreators
in interface ModuleCreatorRegistry
creators
- the creators to addpublic void addCreator(ModuleCreator creator)
addCreator
in interface ModuleCreatorRegistry
creator
- the creator to addpublic void removeAll()
removeAll
in interface ModuleCreatorRegistry
Copyright © 2013. All Rights Reserved.