Class CompositeGenerator<E>

    • Field Detail

      • generatedType

        protected final java.lang.Class<E> generatedType
        The Generated type.
      • components

        protected final java.util.List<com.rapiddweller.common.ThreadAware> components
        The Components.
    • Constructor Detail

      • CompositeGenerator

        protected CompositeGenerator​(java.lang.Class<E> generatedType)
        Instantiates a new Composite generator.
        Parameters:
        generatedType - the generated type
    • Method Detail

      • registerComponent

        protected <T extends Generator<U>,​U> T registerComponent​(T component)
        Register component t.
        Type Parameters:
        T - the type parameter
        U - the type parameter
        Parameters:
        component - the component
        Returns:
        the t
      • registerComponent

        protected <T extends com.rapiddweller.common.Converter<U,​V>,​U,​V> T registerComponent​(T component)
        Register component t.
        Type Parameters:
        T - the type parameter
        U - the type parameter
        V - the type parameter
        Parameters:
        component - the component
        Returns:
        the t
      • registerComponents

        protected void registerComponents​(com.rapiddweller.common.ThreadAware[] components)
        Register components.
        Parameters:
        components - the components
      • getGeneratedType

        public java.lang.Class<E> getGeneratedType()
        Description copied from interface: Generator
        Declares the type of the objects returned by the generate() method.
        Returns:
        the generated type
      • isThreadSafe

        public boolean isThreadSafe()
      • isParallelizable

        public boolean isParallelizable()