public class LookupComponent extends Object
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();| Constructor and Description |
|---|
LookupComponent() |
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.