Package org.tsbs.manager.exceptions

Examples of org.tsbs.manager.exceptions.UnknownFunctionException


    public boolean renameFunction( Class<? extends CallableFunction> clazz, String newName ) throws UnknownFunctionException
    {
        FunctionWrapper fw = mFunctionMap.get( clazz );
        if( clazz == null )
        {
            UnknownFunctionException exc = new UnknownFunctionException( "Unknown function: " + clazz.getName() );
            sfLogger.log( Level.WARNING, "Unknown function tried to rename.", exc );
        }
        String old = fw.getFunctionName();
        fw.setFunctionName( newName );
        sfLogger.log( Level.INFO, "Renamed function from " + old + " to " + newName );
View Full Code Here


    public boolean setFunctionActive( Class<? extends CallableFunction> clazz, boolean setActive ) throws UnknownFunctionException
    {
        FunctionWrapper fw = mFunctionMap.get(clazz);
        if( fw == null )
        {
            UnknownFunctionException exc = new UnknownFunctionException( "UnknownFunction: " + clazz.getName() );
            sfLogger.log( Level.WARNING, "Unknown function tried to activate.", exc );
        }
        fw.setIsActive( setActive );
        sfLogger.log( Level.INFO, "Function " + clazz.getName() + " is now activated." );
        return true;
View Full Code Here

TOP

Related Classes of org.tsbs.manager.exceptions.UnknownFunctionException

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.