org.jboss.ejb3.common.kernel
Class AbstractHandle

java.lang.Object
  extended by org.jboss.ejb3.common.kernel.AbstractHandle
All Implemented Interfaces:
Serializable, Handle
Direct Known Subclasses:
ScopeKeyHandle, UniqueNameHandle

public abstract class AbstractHandle
extends Object
implements Handle

Abstract handle.

Author:
Ales Justin
See Also:
Serialized Form

Constructor Summary
protected AbstractHandle(Object name)
           
 
Method Summary
 Object getBean(org.jboss.kernel.Kernel kernel)
          Get the bean.
protected abstract  org.jboss.dependency.spi.graph.SearchInfo getSearchInfo()
          Get the search info.
 void setState(org.jboss.dependency.spi.ControllerState state)
          Set the bean expected state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHandle

protected AbstractHandle(Object name)
Method Detail

getBean

public Object getBean(org.jboss.kernel.Kernel kernel)
               throws Throwable
Description copied from interface: Handle
Get the bean.

Specified by:
getBean in interface Handle
Parameters:
kernel - the MC kernel
Returns:
the handle's underlying bean
Throws:
Throwable - for any error or if the bean is not found

getSearchInfo

protected abstract org.jboss.dependency.spi.graph.SearchInfo getSearchInfo()
Get the search info.

Returns:
the search info

setState

public void setState(org.jboss.dependency.spi.ControllerState state)
Set the bean expected state.

Parameters:
state - the bean expected state


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