LocalInterfaceRegistry (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.unittest.server.LocalInterfaceRegistry class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.unittest.server
Class LocalInterfaceRegistry

    java.lang.Object
      org.hyperic.util.unittest.server.LocalInterfaceRegistry

    public class LocalInterfaceRegistry

extends java.lang.Object

A registry for looking up EJB local interfaces. This registry is necessary (as opposed to JNDI local lookups) since JNDI local lookups don't work unless the current classloader is the EJB deployer classloader. NOTE: At this time, only unit test method invocations on the local interfaces are supported.

Constructor Summary
`LocalInterfaceRegistry(IsolatingDefaultSystemClassLoader systemCL)` Creates an instance.

Method Summary
`java.lang.Object` | `getLocalInterface(java.lang.Class ejbImplClazz, java.lang.Class localInterface)` Return a proxy to the local interface retrieved from the EJB impl class getOne() static factory method.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LocalInterfaceRegistry

    public LocalInterfaceRegistry(IsolatingDefaultSystemClassLoader systemCL)

  Creates an instance.

  Parameters:
    `systemCL` - The system classloader that should already have registered the EJB deployer classloader.
  Throws:
    `java.lang.IllegalArgumentException` - if the EJB deployer classloader is not registered with the system classloader.

Method Detail

### getLocalInterface

    public java.lang.Object getLocalInterface(java.lang.Class ejbImplClazz,
                                              java.lang.Class localInterface)
                                       throws java.lang.Exception

  Return a proxy to the local interface retrieved from the EJB impl class getOne() static factory method.

  Parameters:
    `ejbImplClazz` - The EJB impl class that must have the getOne() static factory method specified for retrieving the EJB local interface.
    `localInterface` - The interface that the EJB local implements.
  Returns:
    The proxy that can be cast to the local interface. At this time, the proxy ONLY supports unit test method invocations.
  Throws:
    `java.lang.Exception`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.