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

java.lang.Object
  extended by org.jboss.aop.microcontainer.aspects.jndi.JndiIntroduction
All Implemented Interfaces:
Serializable, org.jboss.aop.advice.Interceptor

Deprecated. Should use JndiLifecycleCallback instead

public class JndiIntroduction
extends Object
implements org.jboss.aop.advice.Interceptor, Serializable

A JNDI binding aspect that creates bindings on interception of the kernel setKernelControllerContext callback, and removes them on any other method. The expectation is that this is applied to the org.jboss.kernel.spi.dependency.KernelControllerContextAware interface so that unbinding occurs on the unsetKernelControllerContext method.

Version:
$Revision: 46386 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

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

Constructor Detail

JndiIntroduction

public JndiIntroduction()
Deprecated. 
Method Detail

getName

public String getName()
Deprecated. 
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

getEnv

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

Returns:
the InitialContext ctor env

setEnv

public void setEnv(Properties env)
Deprecated. 
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
Deprecated. 
Bind the target on setKernelControllerContext, unbind on any other method provided that the invocation has a JndiBinding annotation.

Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
Throwable


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