org.jboss.aop.microcontainer.aspects.jndi
Class JndiLifecycleCallback

java.lang.Object
  extended by org.jboss.aop.microcontainer.aspects.jndi.JndiLifecycleCallback

public class JndiLifecycleCallback
extends Object

The jndi lifecycle callback. This puts the beans marked with @JndiBinding into jndi.

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Constructor Summary
JndiLifecycleCallback()
           
 
Method Summary
 Properties getEnv()
          Get the InitialContext properties to use for binding/unbinding
 String getName()
           
 void install(ControllerContext context)
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
          Bind the target on setKernelControllerContext, unbind on any other method provided that the invocation has a JndiBinding annotation.
 void setEnv(Properties env)
          Set the InitialContext properties to use for binding/unbinding
 void uninstall(ControllerContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiLifecycleCallback

public JndiLifecycleCallback()
Method Detail

getName

public String getName()

getEnv

public Properties getEnv()
Get the InitialContext properties to use for binding/unbinding

Returns:
the InitialContext ctor env

setEnv

public void setEnv(Properties env)
Set the InitialContext properties to use for binding/unbinding

Parameters:
env - - the InitialContext ctor env

invoke

public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
              throws Throwable
Bind the target on setKernelControllerContext, unbind on any other method provided that the invocation has a JndiBinding annotation.

Parameters:
invocation - the invocation
Returns:
the result
Throws:
Throwable - for any error

install

public void install(ControllerContext context)
             throws Exception
Throws:
Exception

uninstall

public void uninstall(ControllerContext context)
               throws Exception
Throws:
Exception


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