Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.logging;
 
base initialization class

Author(s):
miha
public final class ClientSideLogging {

    
    };

    
installs default settings on given application

Parameters:
application the application to add the settings to
    public static void install(final WebApplication application) {
        install(applicationnew ClientSideLoggingSettings());
    }

    
installs given settings on given application

Parameters:
application the application to add the settings to
settings the settings to add
    public static void install(final WebApplication applicationfinal IClientSideLoggingSettings settings) {
        Args.notNull(application"application");
        if (settings(application) == null) {
            application.setMetaData(, Args.notNull(settings"settings"));
            WicketWebjars.install(application);
        }
    }

    
returns the de.agilecoders.wicket.logging.settings.ClientSideLoggingSettings which are assigned to given application

Parameters:
app The current application
Returns:
assigned de.agilecoders.wicket.logging.settings.ClientSideLoggingSettings
    public static IClientSideLoggingSettings settings(final Application app) {
        return app.getMetaData();
    }

    
    public static IClientSideLoggingSettings settings() {
        if (Application.exists()) {
            return settings(Application.get());
        }
        throw new IllegalStateException("there is no active application assigned to this thread.");
    }
New to GrepCode? Check out our FAQ X