org.jboss.jca.core.naming
Class JndiBinder

java.lang.Object
  extended by org.jboss.jca.core.naming.JndiBinder
All Implemented Interfaces:
ObjectFactory

public class JndiBinder
extends Object
implements ObjectFactory

Helper class to create JNDI bindings

Author:
Jesper Pedersen

Constructor Summary
JndiBinder()
          Constructor
 
Method Summary
 void bind()
          Bind
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
          Obtain the connection factory
 void setName(String v)
          Set the name
 void setObject(Object v)
          Set the object
 void unbind()
          Unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiBinder

public JndiBinder()
Constructor

Method Detail

setName

public void setName(String v)
Set the name

Parameters:
v - The value

setObject

public void setObject(Object v)
Set the object

Parameters:
v - The value

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable<?,?> environment)
                         throws Exception
Obtain the connection factory

Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

bind

public void bind()
          throws Throwable
Bind

Throws:
Throwable - Thrown in case of an error

unbind

public void unbind()
            throws Throwable
Unbind

Throws:
Throwable - Thrown in case of an error


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)