Package org.jboss.seam.wiki.core.plugin.binding.lacewiki

Source Code of org.jboss.seam.wiki.core.plugin.binding.lacewiki.PluginDeploymentHandler

/*
* JBoss, Home of Professional Open Source
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.seam.wiki.core.plugin.binding.lacewiki;

import org.jboss.seam.Component;
import org.jboss.seam.deployment.DeploymentStrategy;
import org.jboss.seam.wiki.util.XmlDeploymentHandler;

/**
* Detects all *.plugin.xml files and offers Dom4J elements.
*
* @author Christian Bauer
*/
public class PluginDeploymentHandler extends XmlDeploymentHandler {

    public static final String NAME = "pluginDeploymentHandler";

    public String getExtension() {
        return ".plugin.xml";
    }

    public String getName() {
        return NAME;
    }

    public boolean isSchemaValidating() {
        return true;
    }

    public static PluginDeploymentHandler instance() {
        DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
        return (PluginDeploymentHandler) deployment.getDeploymentHandlers().get(NAME);
    }

}
TOP

Related Classes of org.jboss.seam.wiki.core.plugin.binding.lacewiki.PluginDeploymentHandler

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.