JBoss Integration 6.0 Parent 6.0.0.CR1

org.jboss.scanning.spi.jpa
Interface JPAEnvironment


public interface JPAEnvironment

JPA environment.

Author:
Emmanuel Bernard, Ales Justin

Method Summary
 Set<Class<?>> getClassesInJar(URL jarToScan, Class<? extends Annotation>... annotationsToLookFor)
          Return all classes in the jar matching one of these annotations if annotationsToLookFor is empty, return all classes.
 Set<Resource> getFilesInClasspath(URL jarToScan, String... filePatterns)
          Return all files in the classpath (ie PU visibility) matching one of these file names if filePatterns is empty, return all files the use case is really exact file name.
 Set<Resource> getFilesInJar(URL jarToScan, String... filePatterns)
          Return all files in the jar matching one of these file names if filePatterns is empty, return all files e.g.
 Set<Package> getPackagesInJar(URL jarToScan, Class<? extends Annotation>... annotationsToLookFor)
          Return all packages in the jar matching one of these annotations if annotationsToLookFor is empty, return all packages.
 String getUnqualifiedJarName(URL url)
          Return the unqualified JAR name ie customer-model.jar or store.war.
 

Method Detail

getPackagesInJar

Set<Package> getPackagesInJar(URL jarToScan,
                              Class<? extends Annotation>... annotationsToLookFor)
Return all packages in the jar matching one of these annotations if annotationsToLookFor is empty, return all packages.

Parameters:
jarToScan - jar to scan
annotationsToLookFor - matching annotations
Returns:
matching packages

getClassesInJar

Set<Class<?>> getClassesInJar(URL jarToScan,
                              Class<? extends Annotation>... annotationsToLookFor)
Return all classes in the jar matching one of these annotations if annotationsToLookFor is empty, return all classes.

Parameters:
jarToScan - jar to scan
annotationsToLookFor - matching annotations
Returns:
matching classes

getFilesInJar

Set<Resource> getFilesInJar(URL jarToScan,
                            String... filePatterns)
Return all files in the jar matching one of these file names if filePatterns is empty, return all files e.g. *.hbm.xml, META-INF/orm.xml

Parameters:
jarToScan - jar to scan
filePatterns - file patterns
Returns:
resources

getFilesInClasspath

Set<Resource> getFilesInClasspath(URL jarToScan,
                                  String... filePatterns)
Return all files in the classpath (ie PU visibility) matching one of these file names if filePatterns is empty, return all files the use case is really exact file name.

Parameters:
jarToScan - jar to scan
filePatterns - file patterns
Returns:
resources

getUnqualifiedJarName

String getUnqualifiedJarName(URL url)
Return the unqualified JAR name ie customer-model.jar or store.war.

Parameters:
url - the url
Returns:
the unqualified name

JBoss Integration 6.0 Parent 6.0.0.CR1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.