Package org.jboss.fresh.ctx

Examples of org.jboss.fresh.ctx.FlatContext


    public void init(Buffer shellout) {
        try {

            // create new Cache Object implementation
            //shell.setCache(new SimpleMemCache());
            shell.setContext(new FlatContext());
            try {
                if (shell.getVFS().exists(null, new FileName("/etc/shell/init.rc"), true))
                    shell.executeAsObject("run /etc/shell/init.rc"); // NullInput In case no redirects specified of course
            } catch (Exception ex) {
                log.error("Error while executing 'run /etc/shell/init.rc'", ex);
View Full Code Here


  public ContextBinder() {
    super();
  }

  protected Object classToInstance(Class c) {
    return new FlatContext();
  }
View Full Code Here

        // create it
        // set mappings
        // return

        FlatContext ctx = new FlatContext();

        JNDICtx jctx = new JNDICtx();
        jctx.setMappings(map);
        ctx.registerDelegate(jctx);
       
        setServiceObject(ctx);
        return ctx;

    }
View Full Code Here

TOP

Related Classes of org.jboss.fresh.ctx.FlatContext

Copyright © 2018 www.massapicom. 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.