Package org.apache.juneau.console
Class CardTypeRegistry.Builder
java.lang.Object
org.apache.juneau.console.CardTypeRegistry.Builder
- Enclosing class:
- CardTypeRegistry
Builds a
CardTypeRegistry on top of an existing one, or from scratch.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
Registers a handler.- Parameters:
h- The handler.- Returns:
- This object.
- Throws:
IllegalArgumentException- E-21 ifCardTypeHandler.type()doesn't match the name pattern; E-22 if it names a reserved type this class doesn't own; E-20 if the type is already registered.
-
build
- Returns:
- The built, immutable
CardTypeRegistry.
-