Examples of CallableFunction


Examples of org.tsbs.core.CallableFunction

        {
            // differentiate between class- and fileName because the className needs to be
            // fully qualified, but the name for the function should be the not fully qualified name
            fileName  = f.getName().substring( 0, f.getName().indexOf( ".class" ) );
            className = PACKAGE_QUALIFIER + fileName;
            CallableFunction function = loadFunction( className );
            if( function != null )
            {
                mFunctionMap.put( function.getClass(), new FunctionWrapper( function.getClass(), f, fileName, false ) );
                sfLogger.log( Level.INFO, "Internal function \"" + fileName + "\" saved to the functionMap." );
            }
        }
        sfLogger.log( Level.INFO, "Internal functions loaded." );
    }
View Full Code Here

Examples of org.tsbs.core.CallableFunction

        String className;

        for( File f : files )
        {
            className = f.getName().substring( 0, f.getName().indexOf( ".class" ) );
            CallableFunction function = loadFunction( className );
            if( function != null )
            {
                mFunctionMap.put( function.getClass(), new FunctionWrapper( function.getClass(), f, className, false ) );
                sfLogger.log( Level.INFO, "External function \"" + className + "\" saved to the functionMap." );
            }
        }
        sfLogger.log( Level.INFO, "External functions loaded." );
    }
View Full Code Here

Examples of org.tsbs.core.CallableFunction

    // loads a function using the ClassLoader. Which function should be loaded is specified by className
    // returns null and lo  gs a failure if there is no function/class like className
    private CallableFunction loadFunction( String className )
    {
        CallableFunction function = null;
        try
        {
            function = (CallableFunction)mUrlClassLoader.loadClass( className ).newInstance();
            sfLogger.log( Level.INFO, "Function \"" + className + "\" successful loaded." );
        }
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.