public class BeansContextProviderFactory
extends java.lang.Object
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 and Description |
---|
BeansContextProviderFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.