Package com.chemaxon.apidiscovery
Class CreatorWrapper<T>
java.lang.Object
com.chemaxon.apidiscovery.CreatorWrapper<T>
- Type Parameters:
T
- Type of the created instance
@Beta
@PublicAPI
@Deprecated(forRemoval=true)
@SubjectToRemoval(date=JAN_01_2025)
public class CreatorWrapper<T>
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The API discovery tool will be removed.
CreatorWrapper acts as a type- and instance -dependent service loader.
A creator method simply creates an instance of a type from an instance of a parameter type. (Consider here the Descriptors API createXXXComparator methods.) When the parameter type has free parameters it should be implemented as an immutable parameter object - builder class pair. This wrapper usually wraps a default instance of such immutable parameter objects; however it returns an associated builder to change.
Please note that this class is marked with Beta
annotation, so it can be subject of incompatible changes
or removal in later releases.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Deprecated, for removal: This API element is subject to removal in a future version.Invoke creator method.Deprecated, for removal: This API element is subject to removal in a future version.Get the parameter object or its mutable builder if exists.Deprecated, for removal: This API element is subject to removal in a future version.getName()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getBuilderOrParameterObject
Deprecated, for removal: This API element is subject to removal in a future version.Get the parameter object or its mutable builder if exists.If the returned object is mutable then its state will be considered upon creation
- Returns:
- The wrapped parameter object or its builder when exists.
-
getShortName
Deprecated, for removal: This API element is subject to removal in a future version. -
getName
Deprecated, for removal: This API element is subject to removal in a future version. -
getDescription
Deprecated, for removal: This API element is subject to removal in a future version. -
create
Deprecated, for removal: This API element is subject to removal in a future version.Invoke creator method.Use builder if exists, otherwise initial
- Returns:
- The created instance
-