|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.ejbx.BeansContextProviderFactory
public class BeansContextProviderFactory
Factory for IContextProvider in order to accede to EJBs.
This class provide the implementation of BeansContext, thus
it's possible to setup the its behaviour declaratorily.
It's requiredt to have a properties file called
BeansContext.properties within CLASSPATH. This file
must to have the form name=class.
Like this:
_defecto=javacomp _subcontexto= javacomp=puntocom.negocio.context.JavaCompBeansContextProvider jndi=puntocom.negocio.context.JndiBeansContextProviderOr in English:
_default=javacomp _subcontext= javacomp=puntocom.negocio.context.JavaCompBeansContextProvider jndi=puntocom.negocio.context.JndiBeansContextProviderThe entry
_default/_defecto indicates the object used
by default. The default object is created calling to
indica el objeto usado por defecto. El create() without arguments.
The classes used have to implement IContextProvider._subcontext/_subcontexto indicates the lookup subcontext used,
It can be left in blank or omit the entry, then it lookup from root subcontext.
| Constructor Summary | |
|---|---|
BeansContextProviderFactory()
|
|
| Method Summary | |
|---|---|
static IContextProvider |
create()
Create a context provider to lookup EJBs by default. |
static IContextProvider |
create(java.lang.String name)
Create a context provider to lookup EJBs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeansContextProviderFactory()
| Method Detail |
|---|
public static IContextProvider create()
throws InitException
Postcondition:
_default/_defecto of
BeansContext.properties.
InitException - Some problem on init.
public static IContextProvider create(java.lang.String name)
throws InitException
Postcondition:
BeansContext.properties file.
InitException - Some problem on init.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||