Issue Type: Bug Bug
Assignee: Unassigned
Components: rendering
Created: 23/May/13 11:08 AM
Description:

The return type is:

Class<Generator<AutoGenerationConfiguration>> getGeneratorClass();

Which means that it has to be this exact class, or interface as it is in this case. That's obviously not what we want. We want it to be a class that implements the Generator interface with a custom configuration class as its type parameter.

It should be:

Class<? extends Generator<? extends AutoGenerationConfiguration>> getGeneratorClass();

Here's an example of the problem:

    public static class MyAutoGenerationConfiguration implements AutoGenerationConfiguration {

        @Override
        public Map<String, Object> getContent() {
            return null;
        }

        @Override
        public Class<Generator<AutoGenerationConfiguration>> getGeneratorClass() {
            return MyGenerator.class; // DOES NOT COMPILE
        }
    }

    public static class MyGenerator implements Generator<AutoGenerationConfiguration> {

        @Override
        public void generate(AutoGenerationConfiguration configuration) throws RenderException {
        }
    }
Fix Versions: 4.5.x, 5.0
Project: Magnolia
Priority: Neutral Neutral
Reporter: Tobias Mattsson
Security Level: Public
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to