org.ow2.petals.cli.shell.jbi
Class ArtifactFactory

java.lang.Object
  extended by org.ow2.petals.cli.shell.jbi.ArtifactFactory

public abstract class ArtifactFactory
extends java.lang.Object

Author:
sandre

Field Summary
static java.lang.String JBI_XML_PATH
          Path to the jbi.xml file in a JBI artifact archive
static java.lang.String XPATH_JBI_BC_TYPE
          XPath expression to determine if a JBI configuration is tied to a binding component
static java.lang.String XPATH_JBI_SA_TYPE
          XPath expression to determine if a JBI configuration is tied to a service assembly
static java.lang.String XPATH_JBI_SE_TYPE
          XPath expression to determine if a JBI configuration is tied to a service engine
static java.lang.String XPATH_JBI_SL_TYPE
          XPath expression to determine if a JBI configuration is tied to a shared library
 
Constructor Summary
ArtifactFactory()
           
 
Method Summary
protected static java.io.File copyURLToTempFile(java.net.URL url)
           
protected static org.w3c.dom.Node extractJbiXml(java.io.File archive)
           
static Artifact newInstance(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBI_XML_PATH

public static final java.lang.String JBI_XML_PATH
Path to the jbi.xml file in a JBI artifact archive

See Also:
Constant Field Values

XPATH_JBI_BC_TYPE

public static final java.lang.String XPATH_JBI_BC_TYPE
XPath expression to determine if a JBI configuration is tied to a binding component

See Also:
Constant Field Values

XPATH_JBI_SL_TYPE

public static final java.lang.String XPATH_JBI_SL_TYPE
XPath expression to determine if a JBI configuration is tied to a shared library

See Also:
Constant Field Values

XPATH_JBI_SA_TYPE

public static final java.lang.String XPATH_JBI_SA_TYPE
XPath expression to determine if a JBI configuration is tied to a service assembly

See Also:
Constant Field Values

XPATH_JBI_SE_TYPE

public static final java.lang.String XPATH_JBI_SE_TYPE
XPath expression to determine if a JBI configuration is tied to a service engine

See Also:
Constant Field Values
Constructor Detail

ArtifactFactory

public ArtifactFactory()
Method Detail

newInstance

public static final Artifact newInstance(java.net.URL url)
                                  throws ArtifactException
Throws:
ArtifactException

extractJbiXml

protected static org.w3c.dom.Node extractJbiXml(java.io.File archive)
                                         throws java.util.zip.ZipException,
                                                java.io.IOException,
                                                javax.xml.parsers.ParserConfigurationException,
                                                org.xml.sax.SAXException
Throws:
java.util.zip.ZipException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

copyURLToTempFile

protected static java.io.File copyURLToTempFile(java.net.URL url)
                                         throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.