- Type Parameters:
T- The type for which this representation generator works.
public interface RepresentationGenerator<T>This type contains functionality to create abstract representations of content items of a given type. Clients can implement this interface for custom content items (e.g., WCB elements) and make it available via the OSGi service registry. Any
RepresentationGeneratorServicethen registers it and uses it for generating representations of the custom content items. Note that the
ContentRepresentationsclass contains a number of factory methods for the
ContentRepresentationand related types.
Implementations must be prepared that the methods of this type can be called in parallel from multiple threads.
getSupportedTypeReturns the supported type at runtime.
- the supported type
ContentRepresentation represent(T contentItem) throws ContentRepresentationExceptionGenerates a representation of the given content item.