METAGEN-92 Renaming XmlParser to better reflect its function

This commit is contained in:
Hardy Ferentschik 2013-08-07 21:55:12 +02:00 committed by Strong Liu
parent 5bdb352569
commit fb132b281c
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ import org.hibernate.jpamodelgen.model.MetaEntity;
import org.hibernate.jpamodelgen.util.Constants;
import org.hibernate.jpamodelgen.util.StringUtil;
import org.hibernate.jpamodelgen.util.TypeUtils;
import org.hibernate.jpamodelgen.xml.XmlParser;
import org.hibernate.jpamodelgen.xml.JpaDescriptorParser;
/**
* Main annotation processor.
@ -106,7 +106,7 @@ public class JPAMetaModelEntityProcessor extends AbstractProcessor {
boolean fullyAnnotationConfigured = Boolean.parseBoolean( tmp );
if ( !fullyAnnotationConfigured ) {
XmlParser parser = new XmlParser( context );
JpaDescriptorParser parser = new JpaDescriptorParser( context );
parser.parseXml();
if ( context.isPersistenceUnitCompletelyXmlConfigured() ) {
createMetaModelClasses();

View File

@ -51,7 +51,7 @@ import org.hibernate.jpamodelgen.xml.jaxb.PersistenceUnitMetadata;
/**
* @author Hardy Ferentschik
*/
public class XmlParser {
public class JpaDescriptorParser {
private static final String DEFAULT_ORM_XML_LOCATION = "/META-INF/orm.xml";
private static final String SERIALIZATION_FILE_NAME = "Hibernate-Static-Metamodel-Generator.tmp";
@ -62,7 +62,7 @@ public class XmlParser {
private final List<EntityMappings> entityMappings;
private final XmlParserHelper xmlParserHelper;
public XmlParser(Context context) {
public JpaDescriptorParser(Context context) {
this.context = context;
this.entityMappings = new ArrayList<EntityMappings>();
this.xmlParserHelper = new XmlParserHelper( context );