pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.configuration
Class JNDILookupConfiguration

java.lang.Object
  extended by org.torweg.pulse.configuration.JNDILookupConfiguration
All Implemented Interfaces:
java.io.Serializable

public class JNDILookupConfiguration
extends java.lang.Object
implements java.io.Serializable

defines the configuration for a named object in JNDI.

Version:
$Revision: 1387 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
JNDILookupConfiguration()
          default constructor.
 
Method Summary
 java.lang.String getContext()
          returns the context for lookups.
 java.lang.String getNamedObject()
          returns the name of the Object.
 java.lang.Object lookup()
          returns the Object from JNDI.
 void setContext(java.lang.String ctx)
          sets the context for lookups.
 void setNamedObject(java.lang.String name)
          sets the name of the named Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDILookupConfiguration

public JNDILookupConfiguration()
default constructor.

Method Detail

getContext

public final java.lang.String getContext()
returns the context for lookups.

Returns:
the context

setContext

public final void setContext(java.lang.String ctx)
sets the context for lookups.

Parameters:
ctx - the context to set

getNamedObject

public final java.lang.String getNamedObject()
returns the name of the Object.

Returns:
the name of the Object.

setNamedObject

public final void setNamedObject(java.lang.String name)
sets the name of the named Object.

Parameters:
name - the name to set

lookup

public final java.lang.Object lookup()
                              throws javax.naming.NamingException
returns the Object from JNDI.

Returns:
the Object
Throws:
javax.naming.NamingException - on errors during the lookup