org.jboss.ejb3.protocol.jarjar
Class Handler
java.lang.Object
java.net.URLStreamHandler
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()
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 |
Handler
public Handler()
init
public static void init()
openConnection
protected URLConnection openConnection(URL u)
throws IOException
- Specified by:
openConnection
in class URLStreamHandler
- Throws:
IOException
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.