Closed frequiheiko closed 2 months ago
Played around a bit:
@UrlFactoryComponent(name = "MyUrlCreator", useRegistry = false, parameters = {
@Parameter(name = "LegacyClass", value = "de.my.urlservice.creator.MyUrlCreator") })
I end up with:
<public>
<name>MyUrlCreator</name>
<displayname/>
<description/>
<class>de.espirit.firstspirit.generate.UrlCreatorSpecification</class>
<configuration>
<UrlFactory>de.my.urlservice.creator.MyUrlCreator</UrlFactory>
<UseRegistry>false</UseRegistry>
<LegacyClass>de.my.urlservice.creator.MyUrlCreator</LegacyClass>
</configuration>
</public>
I guess "UrlFactory" breaks it?
I guess "UrlFactory" breaks it?
What do you mean by that? Is the generated configuration not working?
Without testing it I was confused by:
<UrlFactory>de.my.urlservice.creator.MyUrlCreator</UrlFactory>
<LegacyClass>de.my.urlservice.creator.MyUrlCreator</LegacyClass>
Now I tested and the old UrlCreator seems to work. Unfortunately we cannot use the newer approach UrlFactory because we want to access the generation task variables.
I tested it now in the correct environment and it works even with both set: UrlFactory and LegacyClass.
Hi,
how would I annotate a custom UrlCreator? To get something like:
Is it possible?
Thanks, Heiko