Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
Constructor and Description |
---|
JPAService() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.msc.service.ServiceController<?> |
addService(org.jboss.msc.service.ServiceTarget target,
String defaultDataSourceName,
ExtendedPersistenceInheritance defaultExtendedPersistenceInheritance,
org.jboss.msc.service.ServiceListener<Object>... listeners) |
static Resource |
createManagementStatisticsResource(org.jipijapa.plugin.spi.ManagementAdaptor managementAdaptor,
String scopedPersistenceUnitName,
DeploymentUnit deploymentUnit)
Create single instance of management statistics resource per managementAdaptor version.
|
static String |
getDefaultDataSourceName() |
static ExtendedPersistenceInheritance |
getDefaultExtendedPersistenceInheritance() |
Void |
getValue() |
static void |
setDefaultDataSourceName(String dataSourceName) |
static void |
setDefaultExtendedPersistenceInheritance(ExtendedPersistenceInheritance defaultExtendedPersistenceInheritance) |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
public static String getDefaultDataSourceName()
public static void setDefaultDataSourceName(String dataSourceName)
public static ExtendedPersistenceInheritance getDefaultExtendedPersistenceInheritance()
public static void setDefaultExtendedPersistenceInheritance(ExtendedPersistenceInheritance defaultExtendedPersistenceInheritance)
public static org.jboss.msc.service.ServiceController<?> addService(org.jboss.msc.service.ServiceTarget target, String defaultDataSourceName, ExtendedPersistenceInheritance defaultExtendedPersistenceInheritance, org.jboss.msc.service.ServiceListener<Object>... listeners)
public static Resource createManagementStatisticsResource(org.jipijapa.plugin.spi.ManagementAdaptor managementAdaptor, String scopedPersistenceUnitName, DeploymentUnit deploymentUnit)
managementAdaptor
- the management adaptor that will provide statisticsscopedPersistenceUnitName
- name of the persistence unitdeploymentUnit
- deployment unit for the deployment requesting a resourcepublic void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<Void>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext stopContext)
stop
in interface org.jboss.msc.service.Service<Void>
public Void getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<Void>
IllegalStateException
IllegalArgumentException
Copyright © 2014 JBoss by Red Hat. All rights reserved.