Examples of SystemContext


Examples of com.xmultra.log.SystemContext

     */
    void logStatusReport() {

        this.msgEntry.setAppContext("logStatusReport()");
        this.msgEntry.setMessageText("Status report for Xmultra version: " + xmultraVersion +
                                     (new SystemContext()).toString());
        this.logger.logProcess(msgEntry);
    }
View Full Code Here

Examples of org.apache.slide.projector.SystemContext

        super(parent);
        this.uri = uri;
    }

    public Class findClass(String name) throws ClassNotFoundException {
        Context context = new SystemContext();
        try {
            URI rendererUri = new URIValue(uri.toString() + name.replace('.', '/') + ".class");
            StreamableValue resource = ((StreamableValue)Projector.getRepository().getResource(rendererUri, context.getCredentials()));
            if ( resource == null ) {
              throw new ClassNotFoundException("Class " + name + " at URI '"+rendererUri+"' not found in collection '" + uri + "'!");
            }
            InputStream inputStream = resource.getInputStream();
            ByteArrayOutputStream outputStream = new ByteArrayOutputStream(1024);
View Full Code Here

Examples of org.apache.slide.projector.SystemContext

    }

    public void run() {
        try {
            logger.log(Level.FINE, "Launching scheduled process '"+getProcessorUri()+"'");
            Context context = new SystemContext();
            Scheduler.setContext(context);
            ProcessorManager.getInstance().process(getProcessorUri(), getParameters(), context);
        } catch ( Exception e ) {
            logger.log(Level.SEVERE, "Scheduled process '"+getProcessorUri()+"' failed", e);
        }
View Full Code Here

Examples of org.apache.slide.projector.SystemContext

       threadContext.set(context);
    }

    public static Context getContext() {
        if ( threadContext.get() == null ) {
            threadContext.set(new SystemContext());
        }
        return (Context)threadContext.get();
    }
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.