Interface ResourceIdentifierFactory

  • All Known Implementing Classes:
    DefaultResourceIdentifierFactory

    public interface ResourceIdentifierFactory
    Responsible for generating a resource identifier for a resource.
    • Method Detail

      • getResourceIdentifier

        ResourceIdentifier getResourceIdentifier​(Object resource,
                                                 ConversionContext context)
        Creates a resource identifier for the specified resource.
        Parameters:
        resource - the resource
        context - The context to generate the resource identifier in
        Returns:
        the resource identifier (cannot be null)
        Throws:
        ResourceIdentifierCreationException - if there is an error creating the resource identifier