Class ComponentRegistry

java.lang.Object
org.patternfly.component.ComponentRegistry

public class ComponentRegistry extends Object
The component registry is a singleton that manages the registration and lookup of PatternFly (sub)components per ComponentType and name. Only one (sub)component of each type can be registered. Use this class to get singleton instances of PatternFly (sub)components such as Page, Masthead, or NotificationDrawerList.

The registration must be done by calling registerComponent(ComponentType, BaseComponent) or registerSubComponent(ComponentType, String, SubComponent). The lookup is done by calling lookupComponent(ComponentType) and lookupSubComponent(ComponentType, String).