org.jboss.naming
Class BindingsInitializer

java.lang.Object
  extended by org.jboss.naming.BindingsInitializer

public class BindingsInitializer
extends Object

A bean that can be used to create JNDI bindings

Version:
$Revision:$
Author:
Scott.Stark@jboss.org

Constructor Summary
BindingsInitializer()
           
 
Method Summary
 Map<String,?> getBindings()
          The key/value bindings to add to jndi
 Context getCtx()
          Get the InitialContext into which the bindings will be made.
 void setBindings(Map<String,?> bindings)
           
 void setCtx(Context ctx)
          Set the InitialContext into which the bindings will be made.
 void start()
          Add the bindings to the ctx.
 void stop()
          Remove the bindings from the ctx.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingsInitializer

public BindingsInitializer()
Method Detail

getBindings

public Map<String,?> getBindings()
The key/value bindings to add to jndi

Returns:
The key/value bindings to add to jndi

setBindings

public void setBindings(Map<String,?> bindings)

getCtx

public Context getCtx()
Get the InitialContext into which the bindings will be made.

Returns:

setCtx

public void setCtx(Context ctx)
Set the InitialContext into which the bindings will be made.

Parameters:
ctx -

start

public void start()
           throws NamingException
Add the bindings to the ctx.

Throws:
NamingException
See Also:
setBindings(Map), #setCtx(InitialContext)

stop

public void stop()
          throws NamingException
Remove the bindings from the ctx.

Throws:
NamingException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.