| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContextI
General interface type used to lookup the components and resources provided by an application. See the derived interfaces and implementation classes for details.
| Nested Class Summary | |
|---|---|
static interface | 
ContextI.Type
 | 
| Method Summary | |
|---|---|
 java.lang.Object | 
getComponent(java.lang.String name)
Looks up a component refered to by a symbolic name.  | 
 javax.sql.DataSource | 
getDataSource(java.lang.String name)
Looks up an SQL database refered to by a symbolic name.  | 
 javax.transaction.UserTransaction | 
getTransaction()
Provide access to a user transaction  | 
 int | 
getType()
Returns the type of context, to let the context holder perform operations depending on the environment it is working in.  | 
| Method Detail | 
|---|
int getType()
java.lang.Object getComponent(java.lang.String name)
                              throws ConstructionException,
                                     ReferenceException
name - The symbolic name of the component to look up
ConstructionException - if the container failed to provide
   the required component
ReferenceException - if the provided symbolic name cannot
   be resolved.
javax.transaction.UserTransaction getTransaction()
                                                 throws javax.transaction.SystemException
javax.transaction.SystemException
javax.sql.DataSource getDataSource(java.lang.String name)
                                   throws ConstructionException,
                                          ReferenceException
name - The symbolic name of the SQL source to look up
ConstructionException - if the container failed to provide
   the required SQL database
ReferenceException - if the provided symbolic name cannot
   be resolved.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||