Examples of ModuleEnvironment


Examples of com.sun.enterprise.instance.ModuleEnvironment

    }
   
    if(isApplication())
      appEnv = new ApplicationEnvironment(instanceEnv, name);
    else if(isWebModule())
      moduleEnv = new ModuleEnvironment(instanceEnv, name, DeployableObjectType.WEB);
    else if(isEjbModule())
      moduleEnv = new ModuleEnvironment(instanceEnv, name, DeployableObjectType.EJB);
    else if(isConnectorModule())
      moduleEnv = new ModuleEnvironment(instanceEnv, name, DeployableObjectType.CONN);
                else if (isAppClientModule())
                        moduleEnv = new ModuleEnvironment(instanceEnv, name ,DeployableObjectType.CAR);                   
                else if (isExtensionModule())
                        moduleEnv = new ModuleEnvironment(instanceEnv, name ,type);                                           
                else {
      String msg = localStrings.getString(
          "enterprise.deployment.backend.unknown_deployable_object",
          getClass().getName() );
      throw new IASDeploymentException( msg );
View Full Code Here

Examples of com.sun.enterprise.instance.ModuleEnvironment

        String getLocation() {
            return appClientBean.getLocation();
        }

        String getGeneratedXMLLocation() {
            ModuleEnvironment menv = instEnv.getModuleEnvironment(appClientBean.getName(),
                                                         DeployableObjectType.CAR);
            return menv.getModuleGeneratedXMLPath();
        }
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

  private static final String packageName = "org.rascalmpl.java.parser.object";
  private static final boolean debug = false;

  public ParserGenerator(IRascalMonitor monitor, PrintWriter out, List<ClassLoader> loaders, IValueFactory factory, Configuration config) {
    GlobalEnvironment heap = new GlobalEnvironment();
    ModuleEnvironment scope = new ModuleEnvironment("___parsergenerator___", heap);
    this.evaluator = new Evaluator(ValueFactoryFactory.getValueFactory(), out, out, scope,heap);
    this.evaluator.getConfiguration().setRascalJavaClassPathProperty(config.getRascalJavaClassPathProperty());
    evaluator.addRascalSearchPathContributor(StandardLibraryContributor.getInstance());   
    this.evaluator.setBootstrapperProperty(true);
    this.bridge = new JavaBridge(loaders, factory, config);
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

    this.tr = new TypeReifier(values);
    duration = values.integer(1000*100); // default duration for eval
  }

  private ModuleEnvironment getUniqueModuleEnvironment(IEvaluatorContext ctx) {
    ModuleEnvironment mod = new ModuleEnvironment("___EVAL_INSTANCE___" + evalCount++ , ctx.getHeap());
    return mod;
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

  }

  private Evaluator getSharedEvaluator(IEvaluatorContext ctx) {
    if (this.eval == null) {
      GlobalEnvironment heap = new GlobalEnvironment();
      ModuleEnvironment root = new ModuleEnvironment("___EVAL___", heap);
      this.eval = new Evaluator(ctx.getValueFactory(), ctx.getStdErr(), ctx.getStdOut(), root, heap, ctx.getEvaluator().getClassLoaders(), ctx.getEvaluator().getRascalResolver());
      this.eval.getConfiguration().setRascalJavaClassPathProperty(ctx.getConfiguration().getRascalJavaClassPathProperty());
    }
   
    return this.eval;
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

    IEvaluator<Result<IValue>> evaluator = ctx.getEvaluator();
    EvalTimer timer = new EvalTimer(evaluator, duration.intValue());

    Result<IValue> result = null;
    Environment old = evaluator.getCurrentEnvt();
    ModuleEnvironment env = getUniqueModuleEnvironment(evaluator);
   
    try {
      timer.start();
     
      evaluator.setCurrentEnvt(env);
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

  private static final String packageName = "org.rascalmpl.java.parser.object";
  private static final boolean debug = false;

  public ParserGenerator(IRascalMonitor monitor, PrintWriter out, List<ClassLoader> loaders, IValueFactory factory, Configuration config) {
    GlobalEnvironment heap = new GlobalEnvironment();
    ModuleEnvironment scope = new ModuleEnvironment("___parsergenerator___", heap);
    this.evaluator = new Evaluator(ValueFactoryFactory.getValueFactory(), out, out, scope,heap);
    evaluator.addRascalSearchPathContributor(StandardLibraryContributor.getInstance());    this.evaluator.setBootstrapperProperty(true);
    this.bridge = new JavaBridge(loaders, factory, config);
    this.vf = factory;
   
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

  private boolean initialized;
  private boolean loaded;
 
  public StaticChecker(PrintWriter stderr, PrintWriter stdout) {
    GlobalEnvironment heap = new GlobalEnvironment();
    ModuleEnvironment root = heap.addModule(new ModuleEnvironment("___static_checker___", heap));
    eval = new Evaluator(ValueFactoryFactory.getValueFactory(), stderr, stdout, root, heap);
    eval.addRascalSearchPathContributor(StandardLibraryContributor.getInstance());
    checkerEnabled = false;
    initialized = false;
    loaded = false;
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

  }
 
  private Evaluator createEvaluator(IEvaluatorContext ctx) {
    if (this.evaluator == null) {
      GlobalEnvironment heap = new GlobalEnvironment();
      ModuleEnvironment root = new ModuleEnvironment("___SCREEN___", heap);
      errString = new StringWriter();
      outString = new StringWriter();
      err = new PrintWriter(errString);
      out = new PrintWriter(outString);
      this.evaluator = new Evaluator(values, err, out, root, heap, ctx.getEvaluator().getClassLoaders(), ctx.getEvaluator().getRascalResolver());
View Full Code Here

Examples of org.rascalmpl.interpreter.env.ModuleEnvironment

   
    return this.evaluator;
  }
 
  private ModuleEnvironment getUniqueModuleEnvironment(Evaluator eval) {
    ModuleEnvironment mod = new ModuleEnvironment("___SCREEN_INSTANCE___", eval.getHeap());
    eval.getHeap().addModule(mod);
    return mod; 
  }
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.