Class ServiceInterfaceGenerator

java.lang.Object
com.sun.ejb.codegen.Generator
com.sun.ejb.codegen.ServiceInterfaceGenerator

public class ServiceInterfaceGenerator extends Generator
This class is responsible for generating the SEI when it is not packaged by the application.
Author:
Jerome Dochez
  • Constructor Details

    • ServiceInterfaceGenerator

      public ServiceInterfaceGenerator(ClassLoader loader, Class<?> ejbClass)
      Construct the Wrapper generator with the specified deployment descriptor and class loader.
      Parameters:
      loader - ClassLoader owning generated classes
      ejbClass -
  • Method Details

    • getPackageName

      public String getPackageName()
      Specified by:
      getPackageName in class Generator
      Returns:
      the name of the package of the generated class. Can be null.
    • getGeneratedClassName

      public String getGeneratedClassName()
      Get the fully qualified name of the generated class.

      Note: the remote/local implementation class is in the same package as the bean class, NOT the remote/local interface.

      Specified by:
      getGeneratedClassName in class Generator
      Returns:
      the name of the generated class.
    • getAnchorClass

      public Class<?> getAnchorClass()
      Specified by:
      getAnchorClass in class Generator
      Returns:
      loadable class of the same package as Generator.getGeneratedClassName()
    • defineClassBody

      public void defineClassBody()
      Description copied from class: Generator
      Calls Wrapper methods to configure the class definition. The Wrapper uses ThreadLocal internally, so you should always call Wrapper._clear() in finally block after generation to avoid leakages.
      Specified by:
      defineClassBody in class Generator