TorqueBox 3.1.2

org.torquebox.core.processors
Class AbstractSplitYamlParsingProcessor

java.lang.Object
  extended by org.projectodd.polyglot.core.processors.FileLocatingProcessor
      extended by org.projectodd.polyglot.core.processors.AbstractParsingProcessor
          extended by org.torquebox.core.processors.AbstractSplitYamlParsingProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor
Direct Known Subclasses:
AbstractDestinationYamlParsingProcessor, ApplicationYamlParsingProcessor, AuthYamlParsingProcessor, DatabaseYamlParsingProcessor, EnvironmentYamlParsingProcessor, JobsYamlParsingProcessor, MessagingYamlParsingProcessor, PoolingYamlParsingProcessor, RubyYamlParsingProcessor, ServicesYamlParsingProcessor, StompYamlParsingProcessor, TasksYamlParsingProcessor, WebYamlParsingProcessor

public abstract class AbstractSplitYamlParsingProcessor
extends org.projectodd.polyglot.core.processors.AbstractParsingProcessor

Abstract deployer base-class supporting torquebox.yml sectional parsing.

For a given subsystem 'foo', a torquebox.yml section named 'foo:' can configure it or optionally (deprecated) a file named foo.yml.

Author:
Bob McWhirter

Constructor Summary
AbstractSplitYamlParsingProcessor()
           
 
Method Summary
 void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
           
 String getFileName()
           
 String getSectionName()
           
 boolean isStandaloneDeprecated()
           
 boolean isSupportsRootless()
           
 boolean isSupportsStandalone()
           
 boolean isSupportsSuffix()
           
static void logDeprecation(org.jboss.as.server.deployment.DeploymentUnit unit, String message)
           
protected abstract  void parse(org.jboss.as.server.deployment.DeploymentUnit unit, Object data)
           
 void setFileName(String fileName)
           
 void setSectionName(String sectionName)
           
 void setStandaloneDeprecated(boolean deprecated)
           
 void setSupportsRootless(boolean supportsRootless)
           
 void setSupportsStandalone(boolean supports)
           
 void setSupportsSuffix(boolean supports)
           
 
Methods inherited from class org.projectodd.polyglot.core.processors.AbstractParsingProcessor
getMetaDataFile, getMetaDataFileBySuffix, undeploy
 
Methods inherited from class org.projectodd.polyglot.core.processors.FileLocatingProcessor
getFile, getFilesBySuffix, hasAnyOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSplitYamlParsingProcessor

public AbstractSplitYamlParsingProcessor()
Method Detail

logDeprecation

public static void logDeprecation(org.jboss.as.server.deployment.DeploymentUnit unit,
                                  String message)

deploy

public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
            throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

getFileName

public String getFileName()

getSectionName

public String getSectionName()

isSupportsRootless

public boolean isSupportsRootless()

isStandaloneDeprecated

public boolean isStandaloneDeprecated()

isSupportsStandalone

public boolean isSupportsStandalone()

isSupportsSuffix

public boolean isSupportsSuffix()

parse

protected abstract void parse(org.jboss.as.server.deployment.DeploymentUnit unit,
                              Object data)
                       throws Exception
Throws:
Exception

setFileName

public void setFileName(String fileName)

setSupportsRootless

public void setSupportsRootless(boolean supportsRootless)

setSectionName

public void setSectionName(String sectionName)

setStandaloneDeprecated

public void setStandaloneDeprecated(boolean deprecated)

setSupportsStandalone

public void setSupportsStandalone(boolean supports)

setSupportsSuffix

public void setSupportsSuffix(boolean supports)

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.