org.wso2.carbon.application.deployer.config
Class ApplicationConfiguration

java.lang.Object
  extended by org.wso2.carbon.application.deployer.config.ApplicationConfiguration

public class ApplicationConfiguration
extends Object

This is the runtime representation of the entire app configuration.


Field Summary
static String APPLICATION_NS
           
static String ARTIFACTS_XML
           
static String FEATURE_POSTFIX
           
 
Constructor Summary
ApplicationConfiguration(CarbonAppPersistenceManager capm, InputStream xmlInputStream)
          Constructor builds the cApp configuration by reading the artifacts.xml file from the provided xml input stream.
ApplicationConfiguration(CarbonAppPersistenceManager capm, String appXmlPath)
          Constructor builds the cApp configuration by reading the artifacts.xml file from the provided path.
 
Method Summary
 Artifact getApplicationArtifact()
           
 String getAppName()
           
 String getAppNameWithVersion()
           
 String getAppVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACTS_XML

public static final String ARTIFACTS_XML
See Also:
Constant Field Values

FEATURE_POSTFIX

public static final String FEATURE_POSTFIX
See Also:
Constant Field Values

APPLICATION_NS

public static final String APPLICATION_NS
See Also:
Constant Field Values
Constructor Detail

ApplicationConfiguration

public ApplicationConfiguration(CarbonAppPersistenceManager capm,
                                String appXmlPath)
                         throws org.wso2.carbon.CarbonException
Constructor builds the cApp configuration by reading the artifacts.xml file from the provided path.

Parameters:
capm - - persistance manager
appXmlPath - - absolute path to artifacts.xml file
Throws:
org.wso2.carbon.CarbonException - - error while reading artifacts.xml

ApplicationConfiguration

public ApplicationConfiguration(CarbonAppPersistenceManager capm,
                                InputStream xmlInputStream)
                         throws org.wso2.carbon.CarbonException
Constructor builds the cApp configuration by reading the artifacts.xml file from the provided xml input stream.

Parameters:
capm - - persistance manager
xmlInputStream - - input stream of the artifacts.xml
Throws:
org.wso2.carbon.CarbonException - - error while reading artifacts.xml
Method Detail

getAppName

public String getAppName()

getAppVersion

public String getAppVersion()

getApplicationArtifact

public Artifact getApplicationArtifact()

getAppNameWithVersion

public String getAppNameWithVersion()


Copyright © 2014 WSO2 Inc. All rights reserved.