[
https://issues.apache.org/jira/browse/TILES-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15958231#comment-15958231
]
mck commented on TILES-588:
---------------------------
Thanks for the suggestion [~hurelhuyag].
In your situation i'd be more inclined to do the following…
{code}
public final class UnresolvingDefinitionsFactory implements DefinitionsFactory {
protected DefinitionDAO<?> definitionDao;
public void setDefinitionDAO(DefinitionDAO<?> definitionDao) {
this.definitionDao = definitionDao;
}
public Definition getDefinition(String name, Request tilesContext) {
return definitionDao.getDefinition(name, null);
}
}
{code}
You could also look into implementing the customisation-free DefinitionDao, ie
implement the class:
{{BaseDefinitionDAO implements DefinitionDAO<Void>}}
> add NoLocaleDefinitionsFactory
> ------------------------------
>
> Key: TILES-588
> URL: https://issues.apache.org/jira/browse/TILES-588
> Project: Tiles
> Issue Type: Improvement
> Reporter: hurelhuyag
>
> In my case tiles definitions are has no relation with locale. Maybe this
> class useful for someone.
> {code:java}
> public class NoLocaleDefinitionsFactory extends
> UnresolvingLocaleDefinitionsFactory {
> @Override
> public Definition getDefinition(String name, Request tilesContext) {
> return definitionDao.getDefinition(name, null);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)