public class ServiceFactory extends Object
Constructor and Description |
---|
ServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static OpenBookService |
getService(String unit) |
static OpenBookService |
getService(String unit,
Map<String,Object> config)
Creates a persistence unit of given name configured with the given
name-value parameters.
|
public static OpenBookService getService(String unit)
public static OpenBookService getService(String unit, Map<String,Object> config)
unit
- name of the persistence unit. A META-INF/persistence.xml
must be
available with the same unit name in the classpath.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.