org.jboss.ejb3.protocol.jarjar
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.jboss.ejb3.protocol.jarjar.Handler

public class Handler
extends URLStreamHandler

The jarjar URL stream handler allows for directories within a jarjar to be served as a jar file. So the URL spec becomes: jarjar:jar:file:myjar.jar!/somedirectory/ It's meant to be used by the PersistenceUnitDeploment to comply with javax.persistence.spi.PersistentenceUnitInfo.getPersistenceUnitRootUrl()

Version:
$Revision: 72001 $
Author:
Carlo de Wolf
See Also:
PersistenceUnitInfo.getPersistenceUnitRootUrl()

Constructor Summary
Handler()
           
 
Method Summary
static void init()
           
protected  URLConnection openConnection(URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

init

public static void init()

openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


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