public class DataSourceUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_JNDI_NAME_KEY |
| Constructor and Description |
|---|
DataSourceUtil(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.BundleContext |
getContext() |
DataSource |
getDataSource(String name) |
org.osgi.framework.ServiceReference<?>[] |
getDataSources() |
String |
getServiceJndiName(org.osgi.framework.ServiceReference<?> ref) |
void |
registerDataSource(DataSource dataSource,
String name) |
public static final String SERVICE_JNDI_NAME_KEY
public DataSource getDataSource(String name)
public org.osgi.framework.ServiceReference<?>[] getDataSources()
public String getServiceJndiName(org.osgi.framework.ServiceReference<?> ref)
public org.osgi.framework.BundleContext getContext()
public void registerDataSource(DataSource dataSource, String name)
Copyright © 2014. All rights reserved.