public class DefaultJpaSettingsFactory extends AbstractObjectFactory<JpaSettings> implements JpaSettingsFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultJpaSettingsFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
JpaSettings |
create(String name) |
void |
destroy(String name,
JpaSettings instance) |
Map<String,Object> |
getConfigurationFor(String persistenceUnitName) |
Set<String> |
getPersistenceUnitNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultJpaSettingsFactory(@Nonnull @Named(value="jpa") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getPersistenceUnitNames()
getPersistenceUnitNames
in interface JpaSettingsFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String persistenceUnitName)
getConfigurationFor
in interface JpaSettingsFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<JpaSettings>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<JpaSettings>
@Nonnull public JpaSettings create(@Nonnull String name)
create
in interface ObjectFactory<JpaSettings>
public void destroy(@Nonnull String name, @Nonnull JpaSettings instance)
destroy
in interface ObjectFactory<JpaSettings>