Examples of TemplateManager


Examples of org.apache.myfaces.view.facelets.TemplateManager

    @Override
    public boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name)
            throws IOException, FaceletException, FacesException, ELException
    {
        boolean found = false;
        TemplateManager client;
        Iterator<TemplateManagerImpl> itr = _clients.iterator();
        while (itr.hasNext() && !found)
        {
            client = itr.next();
            if (client.equals(owner))
                continue;
            found = client.apply(ctx, parent, name);
        }
        return found;
    }
View Full Code Here

Examples of org.apache.myfaces.view.facelets.TemplateManager

    @Override
    public boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name)
            throws IOException, FaceletException, FacesException, ELException
    {
        boolean found = false;
        TemplateManager client;
        for (int i = 0; i < _clients.size() && !found; i++)
        {
            client = _clients.get(i);
            if (client.equals(owner))
            {
                continue;
            }
            found = client.apply(ctx, parent, name);
        }
        return found;
    }
View Full Code Here

Examples of org.apache.myfaces.view.facelets.TemplateManager

    @Override
    public boolean includeDefinition(FaceletContext ctx, Facelet owner, UIComponent parent, String name)
            throws IOException, FaceletException, FacesException, ELException
    {
        boolean found = false;
        TemplateManager client;
        Iterator<TemplateManagerImpl> itr = _clients.iterator();
        while (itr.hasNext() && !found)
        {
            client = itr.next();
            if (client.equals(owner))
            {
                continue;
            }
            found = client.apply(ctx, parent, name);
        }
        return found;
    }
View Full Code Here

Examples of org.moltools.apps.probemaker.project.TemplateManager

    platform.addQuickActionSet(new ActionSet(projectActionsQuickSet,"Project",this, 100)); //$NON-NLS-1$
    platform.addQuickActionSet(designaset);

    //Create the templatemanager
    templateManager = new TemplateManager();
    final TemplateIO tio = new TemplateXMLHandler();
    templateManager.setIO(tio);

    //Create file choosers
View Full Code Here

Examples of org.moltools.apps.probemaker.project.TemplateManager

    platform.addQuickActionSet(new ActionSet(projectActionsQuickSet,"Project",this, 100)); //$NON-NLS-1$
    platform.addQuickActionSet(designaset);

    //Create the templatemanager
    templateManager = new TemplateManager();
    final TemplateIO tio = new TemplateXMLHandler();
    templateManager.setIO(tio);

    //Create file choosers
View Full Code Here

Examples of org.moltools.apps.probemaker.project.TemplateManager

    platform.addQuickActionSet(new ActionSet(projectActionsQuickSet,"Project",this, 100)); //$NON-NLS-1$
    platform.addQuickActionSet(designaset);

    //Create the templatemanager
    templateManager = new TemplateManager();
    final TemplateIO tio = new TemplateXMLHandler();
    templateManager.setIO(tio);

    //Create file choosers
View Full Code Here

Examples of org.moltools.apps.probemaker.project.TemplateManager

    platform.addQuickActionSet(new ActionSet(projectActionsQuickSet,"Project",this, 100)); //$NON-NLS-1$
    platform.addQuickActionSet(designaset);

    //Create the templatemanager
    templateManager = new TemplateManager();
    final TemplateIO tio = new TemplateXMLHandler();
    templateManager.setIO(tio);

    //Create file choosers
View Full Code Here

Examples of org.sonatype.nexus.templates.TemplateManager

      throws Exception
  {
    final RepositoryTypeRegistry repositoryTypeRegistry = lookup(RepositoryTypeRegistry.class);
    final RepositoryRegistry repositoryRegistry = lookup(RepositoryRegistry.class);
    final NexusConfiguration nexusConfiguration = lookup(NexusConfiguration.class);
    final TemplateManager templateManager = lookup(TemplateManager.class);

    // register this
    repositoryTypeRegistry.registerRepositoryTypeDescriptors(new RepositoryTypeDescriptor(Repository.class,
        Nexus4807RepositoryImpl.ID, "foo"));

    // load config
    nexusConfiguration.loadConfiguration();

    // assert we have peter not present
    try {
      repositoryRegistry.getRepository("peter");
      Assert.fail("Peter should not be present!");
    }
    catch (NoSuchRepositoryException e) {
      // good, it should be not present
    }

    // create this new repo type
    final RepositoryTemplate template =
        (RepositoryTemplate) templateManager.getTemplates().getTemplateById("nexus4807");
    template.getConfigurableRepository().setId("peter");
    template.getConfigurableRepository().setName("We all love Peter!");
    final Repository repository = template.create();

    // do some simple assertion
View Full Code Here

Examples of org.webslinger.template.TemplateManager

        try {
            vfsDelegate = new TypeVFSDelegate(resolver);
            vfsDelegate.addVFSDelegate(FileName.class, new CommonsVfsFileNameVFSDelegate(vfsDelegate, CommonsVfsContainer.getFileSystemManager()));
            languageManager = new LanguageManager(vfsDelegate, null);
            languageManager.setClassLoader(loader);
            templateManager = new TemplateManager(vfsDelegate, null);
            templateManager.setClassLoader(loader);
        } catch (BSFException e) {
            throw (ContainerException) new ContainerException("Initializing StandardFileSystemManager").initCause(e);
        }
        return true;
View Full Code Here

Examples of org.webslinger.template.TemplateManager

        try {
            vfsDelegate = new TypeVFSDelegate(resolver);
            vfsDelegate.addVFSDelegate(FileName.class, new CommonsVfsFileNameVFSDelegate(vfsDelegate, CommonsVfsContainer.getFileSystemManager()));
            languageManager = new LanguageManager(vfsDelegate, null);
            languageManager.setClassLoader(loader);
            templateManager = new TemplateManager(vfsDelegate, null);
            templateManager.setClassLoader(loader);
        } catch (BSFException e) {
            throw UtilMisc.initCause(new ContainerException("Initializing StandardFileSystemManager"), e);
        }
        return true;
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.