org.eiichiro.gig.heroku
Class PersistenceXMLProcessor

java.lang.Object
  extended by org.eiichiro.gig.heroku.PersistenceXMLProcessor

public class PersistenceXMLProcessor
extends Object

PersistenceXMLProcessor is a persistence.xml processor to get the information of persistence units.

Author:
Eiichiro Uchiumi

Constructor Summary
PersistenceXMLProcessor()
           
 
Method Summary
 List<String> persistenceUnits()
          Returns the persistence units declared in persistence.xml files.
 void process()
          Parses persistence.xml files on the current ClassLoader's search path entries and detects persistence unit declarations from them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceXMLProcessor

public PersistenceXMLProcessor()
Method Detail

process

public void process()
Parses persistence.xml files on the current ClassLoader's search path entries and detects persistence unit declarations from them.


persistenceUnits

public List<String> persistenceUnits()
Returns the persistence units declared in persistence.xml files.

Returns:
The persistence units declared in persistence.xml files.


Copyright © 2012 Eiichiro Uchiumi. All Rights Reserved.