Examples of BaseLocaleUrlDefinitionDAO


Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.1
     */
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext,
            TilesRequestContextFactory contextFactory,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext, contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(applicationContext, contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        return definitionDao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.1
     */
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext,
            TilesRequestContextFactory contextFactory,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext, contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(applicationContext, contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        return definitionDao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

    }

    @Override
    protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(TilesApplicationContext applicationContext,
        TilesRequestContextFactory contextFactory, LocaleResolver resolver) {
      BaseLocaleUrlDefinitionDAO dao = super.instantiateLocaleDefinitionDao(
          applicationContext, contextFactory, resolver);
      if (checkRefresh && dao instanceof CachingLocaleUrlDefinitionDAO) {
        ((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(checkRefresh);
      }
      return dao;
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

    }

    @Override
    protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(ApplicationContext applicationContext,
        LocaleResolver resolver) {
      BaseLocaleUrlDefinitionDAO dao = super.instantiateLocaleDefinitionDao(applicationContext, resolver);
      if (checkRefresh && dao instanceof CachingLocaleUrlDefinitionDAO) {
        ((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(checkRefresh);
      }
      return dao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.1
     */
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext,
            TilesRequestContextFactory contextFactory,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext, contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(applicationContext, contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        return definitionDao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.0
     */
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(Object context,
            TilesApplicationContext applicationContext,
            TilesContextFactory contextFactory, LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                context, applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(context, applicationContext,
                contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(context, applicationContext,
                contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        return definitionDao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.1
     */
    @SuppressWarnings("unchecked")
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(ApplicationContext applicationContext,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext));
        definitionDao.setSources(getSources(applicationContext));
        if (definitionDao instanceof PatternDefinitionResolverAware) {
            ((PatternDefinitionResolverAware<Locale>) definitionDao)
                    .setPatternDefinitionResolver(createPatternDefinitionResolver(Locale.class));
        }
        return definitionDao;
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     */
    @SuppressWarnings("unchecked")
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext,
            TilesRequestContextFactory contextFactory,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext, contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(applicationContext, contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        if (definitionDao instanceof PatternDefinitionResolverAware) {
            ((PatternDefinitionResolverAware<Locale>) definitionDao)
                    .setPatternDefinitionResolver(createPatternDefinitionResolver(Locale.class));
        }
        return definitionDao;
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

     * @since 2.1.1
     */
    protected DefinitionDAO<Locale> createLocaleDefinitionDao(TilesApplicationContext applicationContext,
            TilesRequestContextFactory contextFactory,
            LocaleResolver resolver) {
        BaseLocaleUrlDefinitionDAO definitionDao = instantiateLocaleDefinitionDao(
                applicationContext, contextFactory, resolver);
        definitionDao.setReader(createDefinitionsReader(applicationContext, contextFactory));
        definitionDao.setSourceURLs(getSourceURLs(applicationContext, contextFactory));
        definitionDao.setApplicationContext(applicationContext);
        return definitionDao;
    }
View Full Code Here

Examples of org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO

    }

    @Override
    protected BaseLocaleUrlDefinitionDAO instantiateLocaleDefinitionDao(ApplicationContext applicationContext,
        LocaleResolver resolver) {
      BaseLocaleUrlDefinitionDAO dao = super.instantiateLocaleDefinitionDao(applicationContext, resolver);
      if (checkRefresh && dao instanceof CachingLocaleUrlDefinitionDAO) {
        ((CachingLocaleUrlDefinitionDAO) dao).setCheckRefresh(checkRefresh);
      }
      return dao;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.