-
public interface StructuredFormatFactoryFactory to create instances ofStructuredFormat.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StructuredFormatcreate(String format)default StructuredFormatcreate(String format, MarshallingConfig config)static StructuredFormatFactoryget()StructuredFormatProvidergetProvider(String format)
-
-
-
Method Detail
-
getProvider
StructuredFormatProvider getProvider(String format)
- Parameters:
format- theformat name. E.g.JSON,XML, orYAML.- Returns:
- a new
StructuredFormatProviderfor the givenformatornullif no such provider is registered. - Throws:
ObjectNotFoundException- if no such provider could be found.
-
create
default StructuredFormat create(String format)
- Parameters:
format- theformat name. E.g.JSON,XML, orYAML.- Returns:
- a new
StructuredFormatfor the givenformatusing default configuration.
-
create
default StructuredFormat create(String format, MarshallingConfig config)
- Parameters:
format- theformat name. E.g.JSON,XML, orYAML.config- theMarshallingConfigto customize the format.- Returns:
- a new
StructuredFormatfor the givenformatusing the givenconfig. - See Also:
StructuredFormatProvider.create(MarshallingConfig)
-
get
static StructuredFormatFactory get()
- Returns:
- the instance of this
StructuredFormatFactory.
-
-