org.jboss.testharness.impl.packaging
Interface TCKArtifact

All Known Implementing Classes:
JSR299ArtifactDescriptor, JSR303ArtifactDescriptor, TCKArtifactDescriptor

public interface TCKArtifact

Author:
Hardy Ferentschik

Method Summary
 void addPackage(Package pkg)
           
 void addPackage(String packageName, boolean addRecursively)
           
 void addToClassPath(String relativeUrl)
           
 void create()
           
 Set<Class<?>> getClasses()
           
 String getClassesRoot()
           
 File getClassesRoot(File archiveRoot)
           
 Class<?> getDeclaringClass()
           
 String getDefaultName()
           
 Class<? extends Throwable> getExpectedDeploymentException()
           
 File getExplodedJar()
           
 String getExtension()
           
 URL getJar()
           
 InputStream getJarAsStream()
           
 Set<ResourceDescriptor> getLibraries()
           
 File getLibraryRoot(File archiveRoot)
           
 Set<ResourceDescriptor> getResources()
           
 ResourceDescriptor getXmlConfig()
           
 String getXmlConfigDestination()
           
 TCKArtifact initialize()
           
 boolean isExtrasSupported()
           
 boolean isIncludeDeploymentProperties()
           
 boolean isLibrariesSupported()
           
 boolean isRunLocally()
           
 boolean isUnit()
           
 void setClassesRoot(String classesRoot)
           
 void setExpectedDeploymentException(Class<? extends Throwable> expectedDeploymentException)
           
 void setExtension(String extension)
           
 void setExtrasSupported(boolean extrasSupported)
           
 void setIncludeDeploymentProperties(boolean include)
           
 void setLibrariesRoot(String libraryRoot)
           
 void setLibrariesSupported(boolean librariesSupported)
           
 void setRunLocally(boolean runLocally)
           
 void setSkipBeansXmlConfig(boolean skipBeansXmlConfig)
           
 void setUnit(boolean unit)
           
 void setXmlConfigDestination(String xmlConfigDest)
           
 void skipIncludeXmlConfig(boolean skip)
           
 void writeArtifactToDisk(String outputDirectory)
           
 void writeArtifactToDisk(String outputDirectory, String fileName)
           
 

Method Detail

initialize

TCKArtifact initialize()

getJarAsStream

InputStream getJarAsStream()
                           throws IOException
Throws:
IOException

getJar

URL getJar()
           throws IOException
Throws:
IOException

getExplodedJar

File getExplodedJar()
                    throws IOException
Throws:
IOException

create

void create()
            throws IOException
Throws:
IOException

writeArtifactToDisk

void writeArtifactToDisk(String outputDirectory)
                         throws IOException
Throws:
IOException

writeArtifactToDisk

void writeArtifactToDisk(String outputDirectory,
                         String fileName)
                         throws IOException
Throws:
IOException

getDefaultName

String getDefaultName()

getClasses

Set<Class<?>> getClasses()

getResources

Set<ResourceDescriptor> getResources()

addPackage

void addPackage(Package pkg)

addPackage

void addPackage(String packageName,
                boolean addRecursively)

addToClassPath

void addToClassPath(String relativeUrl)

getClassesRoot

File getClassesRoot(File archiveRoot)

getClassesRoot

String getClassesRoot()

setClassesRoot

void setClassesRoot(String classesRoot)

getDeclaringClass

Class<?> getDeclaringClass()

getExtension

String getExtension()

setExtension

void setExtension(String extension)

getLibraries

Set<ResourceDescriptor> getLibraries()

getLibraryRoot

File getLibraryRoot(File archiveRoot)

setLibrariesRoot

void setLibrariesRoot(String libraryRoot)

isLibrariesSupported

boolean isLibrariesSupported()

setLibrariesSupported

void setLibrariesSupported(boolean librariesSupported)

isExtrasSupported

boolean isExtrasSupported()

setExtrasSupported

void setExtrasSupported(boolean extrasSupported)

isUnit

boolean isUnit()

setUnit

void setUnit(boolean unit)

getExpectedDeploymentException

Class<? extends Throwable> getExpectedDeploymentException()

setExpectedDeploymentException

void setExpectedDeploymentException(Class<? extends Throwable> expectedDeploymentException)

isRunLocally

boolean isRunLocally()

setRunLocally

void setRunLocally(boolean runLocally)

getXmlConfigDestination

String getXmlConfigDestination()

setXmlConfigDestination

void setXmlConfigDestination(String xmlConfigDest)

getXmlConfig

ResourceDescriptor getXmlConfig()

skipIncludeXmlConfig

void skipIncludeXmlConfig(boolean skip)

setIncludeDeploymentProperties

void setIncludeDeploymentProperties(boolean include)

setSkipBeansXmlConfig

void setSkipBeansXmlConfig(boolean skipBeansXmlConfig)

isIncludeDeploymentProperties

boolean isIncludeDeploymentProperties()


Copyright © 2009-2010. All Rights Reserved.