Class DefaultDescriptorFactory
java.lang.Object
de.hybris.platform.integrationservices.model.impl.DefaultDescriptorFactory
- All Implemented Interfaces:
DescriptorFactory
Default implementation of the
DescriptorFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a descriptor for an integration object.createItemTypeDescriptor(@NotNull IntegrationObjectItemModel model) Creates a descriptor for an item in an integration object.Creates a descriptor for an attribute in an integration object..createTypeAttributeDescriptor(@NotNull TypeDescriptor type, @NotNull AbstractIntegrationObjectItemAttributeModel model) Creates a descriptor for an attribute in an integration object.Gets theAttributeSettableCheckerFactory.Gets theAttributeValueAccessorFactoryGets theAttributeValueGetterFactoryGets theAttributeValueSetterFactorystatic DescriptorFactoryRetrieves instance of theDescriptorFactorydefined in the application context.voidsetAttributeSettableCheckerFactory(AttributeSettableCheckerFactory attributeSettableCheckerFactory) voidsetAttributeValueAccessorFactory(AttributeValueAccessorFactory attributeValueAccessorFactory) voidsetAttributeValueGetterFactory(AttributeValueGetterFactory attributeValueGetterFactory) voidsetAttributeValueSetterFactory(AttributeValueSetterFactory attributeValueSetterFactory) void
-
Constructor Details
-
DefaultDescriptorFactory
public DefaultDescriptorFactory()
-
-
Method Details
-
getContextFactory
Retrieves instance of theDescriptorFactorydefined in the application context.- Returns:
DescriptorFactoryconfigured in the application context.
-
createIntegrationObjectDescriptor
Description copied from interface:DescriptorFactoryCreates a descriptor for an integration object.- Specified by:
createIntegrationObjectDescriptorin interfaceDescriptorFactory- Parameters:
model- model of the integration object stored in the persistent storage.- Returns:
- new instance of the
IntegrationObjectDescriptor.
-
createItemTypeDescriptor
Description copied from interface:DescriptorFactoryCreates a descriptor for an item in an integration object.- Specified by:
createItemTypeDescriptorin interfaceDescriptorFactory- Parameters:
model- model of the integration object item stored in the persistent storage.- Returns:
- new instance of the
TypeDescriptor.
-
createTypeAttributeDescriptor
public TypeAttributeDescriptor createTypeAttributeDescriptor(@NotNull @NotNull AbstractIntegrationObjectItemAttributeModel model) Description copied from interface:DescriptorFactoryCreates a descriptor for an attribute in an integration object..- Specified by:
createTypeAttributeDescriptorin interfaceDescriptorFactory- Parameters:
model- model of the integration object item attribute stored in the persistent storage- Returns:
- new instance of the
TypeAttributeDescriptor
-
createTypeAttributeDescriptor
public TypeAttributeDescriptor createTypeAttributeDescriptor(@NotNull @NotNull TypeDescriptor type, @NotNull @NotNull AbstractIntegrationObjectItemAttributeModel model) Description copied from interface:DescriptorFactoryCreates a descriptor for an attribute in an integration object. Default implementation in this interface simply delegates to theDescriptorFactory.createTypeAttributeDescriptor(AbstractIntegrationObjectItemAttributeModel)method. Implementations should override this method to leverage the availability of the TypeDescriptor in the context of the attribute creation.- Specified by:
createTypeAttributeDescriptorin interfaceDescriptorFactory- Parameters:
type- descriptor for the item type containing the attribute.model- model of the integration object item attribute stored in the persistent storage- Returns:
- new instance of the
TypeAttributeDescriptor
-
getAttributeValueAccessorFactory
Description copied from interface:DescriptorFactoryGets theAttributeValueAccessorFactory- Specified by:
getAttributeValueAccessorFactoryin interfaceDescriptorFactory- Returns:
- An instance of a factory
-
setAttributeValueAccessorFactory
public void setAttributeValueAccessorFactory(AttributeValueAccessorFactory attributeValueAccessorFactory) -
getAttributeValueGetterFactory
Description copied from interface:DescriptorFactoryGets theAttributeValueGetterFactory- Specified by:
getAttributeValueGetterFactoryin interfaceDescriptorFactory- Returns:
- An instance of a factory
-
setAttributeValueGetterFactory
-
getAttributeValueSetterFactory
Description copied from interface:DescriptorFactoryGets theAttributeValueSetterFactory- Specified by:
getAttributeValueSetterFactoryin interfaceDescriptorFactory- Returns:
- An instance of a factory
-
setAttributeValueSetterFactory
-
getAttributeSettableCheckerFactory
Description copied from interface:DescriptorFactoryGets theAttributeSettableCheckerFactory.- Specified by:
getAttributeSettableCheckerFactoryin interfaceDescriptorFactory- Returns:
- An instance of the factory
-
setAttributeSettableCheckerFactory
public void setAttributeSettableCheckerFactory(AttributeSettableCheckerFactory attributeSettableCheckerFactory) -
setReferencePathFinder
-