| |
|
| java.lang.Object org.ow2.easybeans.component.smartclient.spi.SmartContextFactory
SmartContextFactory | public class SmartContextFactory implements InitialContextFactory(Code) | | Initial Context factory used on the client side.
It will ask the server for every class/resource not found in local.
author: Florent Benoit |
Constructor Summary | |
public | SmartContextFactory() Default constructor.
Sets the Portable RemoteObject Wrapper class too. |
Method Summary | |
protected static SmartContextFactoryInfo | checkInit(Hashtable, ?> environment) Ensure that all is setup.
It has to work for each PROVIDER_URL
Parameters: environment - the InitialContext env. | public Context | getInitialContext(Hashtable environment) Creates an Initial Context for beginning name resolution.
Special requirements of this context are supplied
Parameters: environment - the given environment. | public static int | getPortOfUrl(String url) Parses the given url, and returns the port number. |
EASYBEANS_DELEGATING_FACTORY | final public static String EASYBEANS_DELEGATING_FACTORY(Code) | | EasyBeans delegating factory. (by default it will be ourself)
|
EASYBEANS_FACTORY | final public static String EASYBEANS_FACTORY(Code) | | EasyBeans factory.
|
EASYBEANS_SMART_JNDI_FACTORY | final public static String EASYBEANS_SMART_JNDI_FACTORY(Code) | | EasyBeans JNDI factory. (by default it will be Carol)
|
SmartContextFactory | public SmartContextFactory()(Code) | | Default constructor.
Sets the Portable RemoteObject Wrapper class too.
|
getInitialContext | public Context getInitialContext(Hashtable environment) throws NamingException(Code) | | Creates an Initial Context for beginning name resolution.
Special requirements of this context are supplied
Parameters: environment - the given environment. the context. throws: NamingException - if no context can be built. |
getPortOfUrl | public static int getPortOfUrl(String url) throws NamingException(Code) | | Parses the given url, and returns the port number. 0 is given in error
case)
Parameters: url - given url on which extract port number port number of the url throws: NamingException - if URL is invalid |
|
|
|