org.rhq.enterprise.gui.util
Class LookupComponent

java.lang.Object
  extended by org.rhq.enterprise.gui.util.LookupComponent

@Startup
@Scope(value=APPLICATION)
@Name(value="lookupComponent")
public class LookupComponent
extends Object

A common Seam component that wraps the LookupUtil, so that any Seam components can use the common DI mechanism to obtain EJB references. This component primarily exists to keep the JNDI lookup in the LookupUtil so that it will not conflict with Seam's JNDI lookup mechanism. Eventually, all session beans can simply be annotated as Seam components and the LookupUtil (as well as this component) can be deprecated. For every getter method defined in LookupUtil, a Seam component will be created that delegates component creation to that getter method. Example Usage: public static ResourceManagerLocal getResourceManager() will be called any time that a component with name "resourceManager" is injected: @In private ResourceManagerLocal resourceManager; is equivalent to private ResourceManagerLocal resourceManager = LookupUtil.getResourceManager();

Author:
Justin Harris

Constructor Summary
LookupComponent()
           
 
Method Summary
 void scanComponents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupComponent

public LookupComponent()
Method Detail

scanComponents

@Create
public void scanComponents()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.