net.officefloor.plugin.jndi.work
Class JndiWork

java.lang.Object
  extended by net.officefloor.plugin.jndi.work.JndiWork
All Implemented Interfaces:
Work

public class JndiWork
extends Object
implements Work

JNDI Work.

Author:
Daniel Sagenschneider

Constructor Summary
JndiWork(String jndiName, Class<?> facadeClass)
          Initiate.
 
Method Summary
 Object getFacade()
          Obtains the facade.
 Object getJndiObject(Context context)
          Obtains the JNDI Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiWork

public JndiWork(String jndiName,
                Class<?> facadeClass)
Initiate.

Parameters:
jndiName - JNDI name of the Work Object.
facadeClass - Facade Class. May be null.
Method Detail

getJndiObject

public Object getJndiObject(Context context)
                     throws NamingException
Obtains the JNDI Object.

Parameters:
context - Context.
Returns:
JNDI Object.
Throws:
NamingException - If fails to obtain the JNDI Object.

getFacade

public Object getFacade()
                 throws Exception
Obtains the facade.

Returns:
Facade.
Throws:
Exception - If fails to create the Facade.


Copyright © 2005-2013. All Rights Reserved.