br.gov.frameworkdemoiselle.internal.producer
Class Persistences
java.lang.Object
br.gov.frameworkdemoiselle.internal.producer.Persistences
@Singleton
public class Persistences
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Inject
protected org.slf4j.Logger logger
bundle
@Inject
protected ResourceBundle bundle
Persistences
public Persistences()
getFromProperties
protected String getFromProperties(EntityManagerConfig config)
- Tries to get persistence unit name from demoiselle.properties.
- Parameters:
config - Configuration containing persistence unit name.
- Returns:
- Persistence unit name.
getFromXML
protected String getFromXML()
- Uses persistence.xml to get informations about which persistence unit to use. Throws DemoiselleException if more
than one Persistence Unit is defined.
- Returns:
- Persistence Unit AmbiguousQualifier
Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.