Class FileContextFactory
- java.lang.Object
-
- nl.tudelft.simulation.naming.context.FileContextFactory
-
- All Implemented Interfaces:
ContextFactory
public class FileContextFactory extends Object implements ContextFactory
A factory for FileContext instances, automatically invoked by JNDI when the correct jndi.properties file has been used.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Peter Jacobs , Alexander Verbraeck
-
-
Constructor Summary
Constructors Constructor Description FileContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextInterfacegetInitialContext(Hashtable<?,?> environment, String atomicName)Creates an Initial Context for beginning name resolution.
-
-
-
Method Detail
-
getInitialContext
public ContextInterface getInitialContext(Hashtable<?,?> environment, String atomicName)
Creates an Initial Context for beginning name resolution. Special requirements of this context are supplied usingenvironment. Different implementations exist, such as the JVMContext, the FileContext and the RemoteContext. A remote context registers itself in the RMI registry using a provided key from the environment. The remote event producer for the remote context uses that same key, extended with the string "_producer".- Specified by:
getInitialContextin interfaceContextFactory- Parameters:
environment- The possibly null environment specifying information to be used in the creation of the initial contextatomicName- String; the name under which the root context will be registered- Returns:
- A non-null initial context object that implements the ContextInterface
-
-