Quadcap Embeddable Server

com.quadcap.services.DataSources Class Reference

Inheritance diagram for com.quadcap.services.DataSources:

Service ObjectFactory List of all members.

Detailed Description

Read datasources.xml; create any specified data sources, and bind them to JNDI names.

Author:
Stan Bailes

Definition at line 69 of file DataSources.java.

Public Member Functions

 DataSources ()
void init (ServiceContainer c, Properties p) throws Exception
Properties getProperties ()
void addDataSource (DataSource ds) throws NamingException
void addAttribute (String name, Object attr)
Object getAttribute (String name)
void stop ()
Object getObjectInstance (Object obj, Name name, Context ctx, Hashtable env) throws Exception

Static Public Member Functions

DataSource getDataSource (String name)

Package Attributes

Context context
Properties props

Static Package Attributes

HashMap dss = new HashMap()

Static Private Attributes

DataSources globalDs = null


Constructor & Destructor Documentation

com.quadcap.services.DataSources.DataSources  ) 
 

Definition at line 74 of file DataSources.java.


Member Function Documentation

void com.quadcap.services.DataSources.addAttribute String  name,
Object  attr
 

Definition at line 108 of file DataSources.java.

References com.quadcap.services.DataSources.addAttribute(), com.quadcap.services.DataSources.context, and com.quadcap.services.DataSources.dss.

Referenced by com.quadcap.services.DataSources.addAttribute(), and com.quadcap.services.DataSources.addDataSource().

void com.quadcap.services.DataSources.addDataSource DataSource  ds  )  throws NamingException
 

Definition at line 100 of file DataSources.java.

References com.quadcap.services.DataSources.addAttribute(), and com.quadcap.services.DataSources.addDataSource().

Referenced by com.quadcap.services.DataSources.addDataSource(), and com.quadcap.services.DataSourcesParser.endElement().

Object com.quadcap.services.DataSources.getAttribute String  name  ) 
 

Definition at line 121 of file DataSources.java.

References com.quadcap.services.DataSources.dss, and com.quadcap.services.DataSources.getAttribute().

Referenced by com.quadcap.services.DataSources.getAttribute().

DataSource com.quadcap.services.DataSources.getDataSource String  name  )  [static]
 

Definition at line 104 of file DataSources.java.

References com.quadcap.services.DataSources.dss, and com.quadcap.services.DataSources.getDataSource().

Referenced by com.quadcap.services.DataSources.getDataSource().

Object com.quadcap.services.DataSources.getObjectInstance Object  obj,
Name  name,
Context  ctx,
Hashtable  env
throws Exception
 

Definition at line 128 of file DataSources.java.

References com.quadcap.services.DataSources.getObjectInstance().

Referenced by com.quadcap.services.DataSources.getObjectInstance().

Properties com.quadcap.services.DataSources.getProperties  ) 
 

Definition at line 98 of file DataSources.java.

References com.quadcap.services.DataSources.props.

void com.quadcap.services.DataSources.init ServiceContainer  c,
Properties  p
throws Exception
 

Definition at line 87 of file DataSources.java.

References com.quadcap.services.DataSources.init(), and com.quadcap.services.DataSourcesParser.parse().

Referenced by com.quadcap.services.DataSources.init().

void com.quadcap.services.DataSources.stop  ) 
 

Definition at line 125 of file DataSources.java.


Member Data Documentation

Context com.quadcap.services.DataSources.context [package]
 

Definition at line 71 of file DataSources.java.

Referenced by com.quadcap.services.DataSources.addAttribute().

HashMap com.quadcap.services.DataSources.dss = new HashMap() [static, package]
 

Definition at line 70 of file DataSources.java.

Referenced by com.quadcap.services.DataSources.addAttribute(), com.quadcap.services.DataSources.getAttribute(), and com.quadcap.services.DataSources.getDataSource().

DataSources com.quadcap.services.DataSources.globalDs = null [static, private]
 

Definition at line 76 of file DataSources.java.

Properties com.quadcap.services.DataSources.props [package]
 

Definition at line 72 of file DataSources.java.

Referenced by com.quadcap.services.DataSources.getProperties().