Class AssociationListGeneratorRegistry
java.lang.Object
de.hybris.platform.odata2services.odata.schema.association.AssociationListGeneratorRegistry
Aggregates associations generated by registered associations generators.
Do not extend this class, if needs to be customized. Customization can be done easily by plugging/unplugging registered associations generators in the Spring configuration. And even if it's absolutely necessary to override this class's methods, write a custom registry that delegates to this registry and does custom things around the delegate call (use composition over inheritance)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.olingo.odata2.api.edm.provider.Association>generateFor(Collection<TypeDescriptor> descriptors) Generates associations that should be present in the schema by delegating to the registered generators and then combining their results.voidsetAssociationGenerators(List<SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.Association>, Collection<TypeDescriptor>>> generators)
-
Constructor Details
-
AssociationListGeneratorRegistry
public AssociationListGeneratorRegistry()
-
-
Method Details
-
generateFor
public List<org.apache.olingo.odata2.api.edm.provider.Association> generateFor(Collection<TypeDescriptor> descriptors) Generates associations that should be present in the schema by delegating to the registered generators and then combining their results.- Parameters:
descriptors- integration item descriptors, for which EDMX associations should be generated- Returns:
- combined list of all associations generated by the nested generators.
-
setAssociationGenerators
public void setAssociationGenerators(List<SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.Association>, Collection<TypeDescriptor>>> generators)
-