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 java.net.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()

See Also:
PersistenceUnitInfo.getPersistenceUnitRootUrl()

Constructor Summary
Handler()
           
 
Method Summary
static void init()
           
protected  java.net.URLConnection openConnection(java.net.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 java.net.URLConnection openConnection(java.net.URL u)
                                         throws java.io.IOException
Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException