Class ProcessIdProperty
java.lang.Object
org.tquadrat.foundation.config.ap.impl.specialprops.SpecialPropertySpecBase
org.tquadrat.foundation.config.ap.impl.specialprops.ProcessIdProperty
- All Implemented Interfaces:
SpecialPropertySpec,PropertySpec
@ClassVersion(sourceVersion="$Id: ProcessIdProperty.java 1001 2022-01-29 16:42:15Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
public final class ProcessIdProperty
extends SpecialPropertySpecBase
The implementation of
SpecialPropertySpecBase
for
SpecialPropertyType.CONFIG_PROPERTY_PID.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ProcessIdProperty.java 1001 2022-01-29 16:42:15Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.config.ap.impl.specialprops.ProcessIdProperty"
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.tquadrat.foundation.config.ap.PropertySpec
PropertySpec.PropertyFlag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static final CodeBlockcomposeConstructorFragment(CodeBuilder codeBuilder, PropertySpecImpl property) Composes the constructor fragment for the initialisation of this property.private static FieldSpeccomposeField(CodeBuilder codeBuilder, PropertySpecImpl property) The method that composes a field for the 'processId' property.Returns the CLI value handler class for this property.Returns the method that composes the constructor fragment for the initialisation of the property.Returns the method that composes the field for the property.Returns thePreferencesaccessor class.final TypeNameReturns the property type.Returns the class that implements the String converter for the type of this property.Methods inherited from class org.tquadrat.foundation.config.ap.impl.specialprops.SpecialPropertySpecBase
createAddMethod, createConstructorFragment, createField, createGetter, createSetter, getAddMethodArgumentName, getAddMethodComposer, getAddMethodName, getAllFlags, getCLIArgumentIndex, getCLIFormat, getCLIMetaVar, getCLIOptionNames, getCLIUsage, getCLIUsageKey, getCollectionKind, getEnvironmentDefaultValue, getEnvironmentVariableName, getGetterBuilder, getGetterComposer, getGetterMethodName, getGetterReturnType, getINIComment, getINIGroup, getINIKey, getPrefsKey, getPropertyName, getSetterArgumentName, getSetterBuilder, getSetterComposer, getSetterMethodName, getSpecialPropertyType, getSystemPrefsPath, getSystemPropertyName, hasFlag, isEnum, mergeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tquadrat.foundation.config.ap.PropertySpec
getElementType, getFieldName, isCollection, isOnCLI
-
Constructor Details
-
ProcessIdProperty
public ProcessIdProperty()Creates a new instance ofProcessIdProperty.
-
-
Method Details
-
composeConstructorFragment
private static final CodeBlock composeConstructorFragment(CodeBuilder codeBuilder, PropertySpecImpl property) Composes the constructor fragment for the initialisation of this property.- Parameters:
codeBuilder- The factory for the code generation.property- The property.- Returns:
- The field specification.
-
composeField
The method that composes a field for the 'processId' property.- Parameters:
codeBuilder- The factory for the code generation.property- The property.- Returns:
- The field specification.
-
getCLIValueHandlerClass
Returns the CLI value handler class for this property. -
getConstructorFragmentComposer
public final Optional<BiFunction<CodeBuilder,PropertySpecImpl, getConstructorFragmentComposer()CodeBlock>> Returns the method that composes the constructor fragment for the initialisation of the property.- Specified by:
getConstructorFragmentComposerin interfaceSpecialPropertySpec- Overrides:
getConstructorFragmentComposerin classSpecialPropertySpecBase- Returns:
- An instance of
Optionalthat holds the composer for the constructor fragment.
-
getFieldComposer
Returns the method that composes the field for the property.- Specified by:
getFieldComposerin interfaceSpecialPropertySpec- Overrides:
getFieldComposerin classSpecialPropertySpecBase- Returns:
- An instance of
Optionalthat holds the field composer.
-
getPrefsAccessorClass
Returns the
Preferencesaccessor class.This is used when this property is linked to a preference, but also to initialise it from a SYSTEM preference.
-
getPropertyType
Returns the property type.- Returns:
- The property type.
-
getStringConverterClass
Returns the class that implements the String converter for the type of this property.- Returns:
- An instance of
Optionalthat holds the implementation class forStringConverter.
-
