TorqueBox 3.1.2

org.torquebox.core
Class TorqueBoxMetaData

java.lang.Object
  extended by org.torquebox.core.TorqueBoxMetaData

public class TorqueBoxMetaData
extends Object

Generalized opaque holder of torquebox.yml-specified metadata.

Once torquebox.yml has been parsed, each top-level section and its associated un-casted value block are added to the TorqueBoxMetaData for use by other, more-specific deployment processors.

See Also:
TorqueBoxYamlParsingProcessor, RubyYamlParsingProcessor, ApplicationYamlParsingProcessor, PoolingYamlParsingProcessor

Field Summary
static org.jboss.as.server.deployment.AttachmentKey<TorqueBoxMetaData> ATTACHMENT_KEY
           
 
Constructor Summary
TorqueBoxMetaData(Map<String,Object> data)
          Construct with parsed YAML results.
 
Method Summary
protected  String determineEnvironmentKey(Map<String,String> section)
           
protected  String determineRootKey(Map<String,String> section)
           
static String findApplicationEnvironment(Map<String,String> section)
           
static String findApplicationRoot(Map<String,String> section)
           
static File findApplicationRootFile(Map<String,String> section)
           
 String getApplicationEnvironment()
           
 String getApplicationRoot()
           
 File getApplicationRootFile()
           
protected static String getOneOf(Map<String,String> map, String... keys)
           
 Object getSection(String name)
           
protected  Object merge(Object key, Map src, Map tgt)
           
 TorqueBoxMetaData overlayOnto(TorqueBoxMetaData baseMetaData)
           
 String toString()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTACHMENT_KEY

public static final org.jboss.as.server.deployment.AttachmentKey<TorqueBoxMetaData> ATTACHMENT_KEY
Constructor Detail

TorqueBoxMetaData

public TorqueBoxMetaData(Map<String,Object> data)
Construct with parsed YAML results.

Parameters:
data - The data, keyed by section name.
Method Detail

getSection

public Object getSection(String name)

getApplicationRoot

public String getApplicationRoot()

findApplicationRoot

public static String findApplicationRoot(Map<String,String> section)

findApplicationRootFile

public static File findApplicationRootFile(Map<String,String> section)

getApplicationRootFile

public File getApplicationRootFile()

getApplicationEnvironment

public String getApplicationEnvironment()

findApplicationEnvironment

public static String findApplicationEnvironment(Map<String,String> section)

getOneOf

protected static String getOneOf(Map<String,String> map,
                                 String... keys)

determineEnvironmentKey

protected String determineEnvironmentKey(Map<String,String> section)

determineRootKey

protected String determineRootKey(Map<String,String> section)

overlayOnto

public TorqueBoxMetaData overlayOnto(TorqueBoxMetaData baseMetaData)

merge

protected Object merge(Object key,
                       Map src,
                       Map tgt)

validate

public void validate()
              throws org.projectodd.yaml.SchemaException
Throws:
org.projectodd.yaml.SchemaException

toString

public String toString()
Overrides:
toString in class Object

TorqueBox 3.1.2

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