br.gov.frameworkdemoiselle.internal.producer
Class EntityManagerFactoryProducer

java.lang.Object
  extended by br.gov.frameworkdemoiselle.internal.producer.EntityManagerFactoryProducer
All Implemented Interfaces:
Serializable

@ApplicationScoped
public class EntityManagerFactoryProducer
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  ResourceBundle bundle
           
protected  org.slf4j.Logger logger
           
 
Constructor Summary
EntityManagerFactoryProducer()
           
 
Method Summary
 void close()
           
 javax.persistence.EntityManagerFactory create(String persistenceUnit)
           
protected  javax.persistence.EntityManagerFactory createDefault(EntityManagerConfig config)
           
protected  javax.persistence.EntityManagerFactory createNamed(javax.enterprise.inject.spi.InjectionPoint ip)
           
 Map<String,javax.persistence.EntityManagerFactory> getCache()
           
 void loadPersistenceUnits()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Inject
protected org.slf4j.Logger logger

bundle

@Inject
protected ResourceBundle bundle
Constructor Detail

EntityManagerFactoryProducer

public EntityManagerFactoryProducer()
Method Detail

createDefault

@Default
@Produces
protected javax.persistence.EntityManagerFactory createDefault(EntityManagerConfig config)

createNamed

@Produces
protected javax.persistence.EntityManagerFactory createNamed(javax.enterprise.inject.spi.InjectionPoint ip)

create

public javax.persistence.EntityManagerFactory create(String persistenceUnit)

loadPersistenceUnits

@PostConstruct
public void loadPersistenceUnits()

close

@PreDestroy
public void close()

getCache

public Map<String,javax.persistence.EntityManagerFactory> getCache()


Copyright © 2014 SERPRO - Serviço Federal de Processamento de Dados. All Rights Reserved.