org.apache.aries.jpa.container.impl
Class PersistenceDescriptorImpl

java.lang.Object
  extended by org.apache.aries.jpa.container.impl.PersistenceDescriptorImpl
All Implemented Interfaces:
PersistenceDescriptor

public class PersistenceDescriptorImpl
extends Object
implements PersistenceDescriptor

Stores the location of a persistence descriptor and a stream to its contents. Note that there is only one copy of the InputStream, only one thread should try to read from it, and it can only be closed once.


Constructor Summary
PersistenceDescriptorImpl(String location, InputStream inputStream)
          Create a PersistenceDescriptor wrapping the location and InputStream
 
Method Summary
 InputStream getInputStream()
           
 String getLocation()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceDescriptorImpl

public PersistenceDescriptorImpl(String location,
                                 InputStream inputStream)
Create a PersistenceDescriptor wrapping the location and InputStream

Parameters:
location -
inputStream -
Method Detail

getLocation

public String getLocation()
Specified by:
getLocation in interface PersistenceDescriptor

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface PersistenceDescriptor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.