org.apache.aries.jpa.container.impl
Class PersistenceDescriptorImpl
java.lang.Object
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.
PersistenceDescriptorImpl
public PersistenceDescriptorImpl(String location,
InputStream inputStream)
- Create a PersistenceDescriptor wrapping the location and InputStream
- Parameters:
location
- inputStream
-
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.