Package com.caucho.java.gen

Examples of com.caucho.java.gen.GenClass.addComponent()


      componentGenerator.setRelatedType((EntityType) type);
      componentGenerator.setBaseClassName(type.getBeanClass().getName());
      componentGenerator.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(componentGenerator);

      DependencyComponent depend = genClass.addDependencyComponent();
      depend.addDependencyList(componentGenerator.getDependencies());
    }
    else if (type instanceof EmbeddableType) {
View Full Code Here


      embeddable.setEmbeddableType((EmbeddableType) type);
      embeddable.setBaseClassName(type.getBeanClass().getName());
      embeddable.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(embeddable);
    }
    else {
      genClass.addInterfaceName("com.caucho.amber.entity.Listener");

      ListenerComponent listener = new ListenerComponent();
View Full Code Here

      listener.setListenerType((ListenerType) type);
      listener.setBaseClassName(type.getBeanClass().getName());
      listener.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(listener);
    }

    javaGen.generate(genClass);
  }
View Full Code Here

      //String extClassName = gen.getBaseClassName() + "__ResinExt";
      // type.setInstanceClassName(extClassName);

      entityGenerator.setExtClassName(type.getInstanceClassName());

      javaClass.addComponent(componentGenerator);
    }
    else if (type instanceof ListenerType) {
      javaClass.addInterfaceName("com.caucho.amber.entity.Listener");

      type.setEnhanced(true);
View Full Code Here

      listener.setListenerType((ListenerType) type);
      listener.setBaseClassName(type.getBeanClass().getName());

      listener.setExtClassName(type.getInstanceClassName());

      javaClass.addComponent(listener);
    }
    else if (componentGenerator instanceof EmbeddableComponent) {
      EmbeddableComponent embeddable
        = (EmbeddableComponent) componentGenerator;
     
View Full Code Here

      embeddable.setEmbeddableType((EmbeddableType) type);
      embeddable.setBaseClassName(type.getBeanClass().getName());

      embeddable.setExtClassName(type.getInstanceClassName());

      javaClass.addComponent(embeddable);
    }

    javaGen.generate(javaClass);

    // _pendingClassNames.add(extClassName);
View Full Code Here

      componentGenerator.setRelatedType((EntityType) type);
      componentGenerator.setBaseClassName(type.getBeanClass().getName());
      componentGenerator.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(componentGenerator);

      DependencyComponent depend = genClass.addDependencyComponent();
      depend.addDependencyList(componentGenerator.getDependencies());
    }
    else if (type instanceof EmbeddableType) {
View Full Code Here

      embeddable.setEmbeddableType((EmbeddableType) type);
      embeddable.setBaseClassName(type.getBeanClass().getName());
      embeddable.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(embeddable);
    }
    else {
      genClass.addInterfaceName("com.caucho.amber.entity.Listener");

      ListenerComponent listener = new ListenerComponent();
View Full Code Here

      listener.setListenerType((ListenerType) type);
      listener.setBaseClassName(type.getBeanClass().getName());
      listener.setExtClassName(type.getInstanceClassName());

      genClass.addComponent(listener);
    }

    javaGen.generate(genClass);
  }
View Full Code Here

      //String extClassName = gen.getBaseClassName() + "__ResinExt";
      // type.setInstanceClassName(extClassName);

      entityGenerator.setExtClassName(type.getInstanceClassName());

      javaClass.addComponent(componentGenerator);
    }
    else if (type instanceof ListenerType) {
      javaClass.addInterfaceName("com.caucho.amber.entity.Listener");

      type.setEnhanced(true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.