org.directwebremoting.impl.CreatorModuleManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwr Show documentation
Show all versions of dwr Show documentation
DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript.
It gets rid of almost all the boiler plate code between the web browser and your Java code.
The newest version!
/*
* Copyright 2005 Joe Walker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.directwebremoting.impl;
import java.util.Collection;
import org.directwebremoting.extend.AccessControl;
import org.directwebremoting.extend.AjaxFilterManager;
import org.directwebremoting.extend.CreatorManager;
import org.directwebremoting.extend.Module;
import org.directwebremoting.extend.ModuleManager;
/**
* An adapter ModuleManager for Creators
* @author Mike Wilson [mikewse at g mail dot com]
*/
public class CreatorModuleManager implements ModuleManager
{
/* (non-Javadoc)
* @see org.directwebremoting.extend.ModuleManager#getModuleNames(boolean)
*/
public Collection getModuleNames(boolean includeHidden)
{
return creatorManager.getCreatorNames(includeHidden);
}
/* (non-Javadoc)
* @see org.directwebremoting.extend.ModuleManager#getModule(java.lang.String, boolean)
*/
public Module getModule(String name, boolean includeHidden)
{
return new CreatorModule(creatorManager.getCreator(name, includeHidden), ajaxFilterManager, accessControl, allowImpossibleTests, accessLogLevel, debug);
}
/**
* @param creatorManager the creatorManager to set
*/
public void setCreatorManager(CreatorManager creatorManager)
{
this.creatorManager = creatorManager;
}
/**
* @param ajaxFilterManager the ajaxFilterManager to set
*/
public void setAjaxFilterManager(AjaxFilterManager ajaxFilterManager)
{
this.ajaxFilterManager = ajaxFilterManager;
}
/**
* @param accessControl the accessControl to set
*/
public void setAccessControl(AccessControl accessControl)
{
this.accessControl = accessControl;
}
/**
* @param allowImpossibleTests the allowImpossibleTests to set
*/
public void setAllowImpossibleTests(boolean allowImpossibleTests)
{
this.allowImpossibleTests = allowImpossibleTests;
}
/**
* @param accessLogLevel the accessLogLevel to set
*/
public void setAccessLogLevel(String accessLogLevel)
{
this.accessLogLevel = accessLogLevel;
}
/**
* @param debug the debug to set
*/
public void setDebug(boolean debug)
{
this.debug = debug;
}
private CreatorManager creatorManager;
private AjaxFilterManager ajaxFilterManager;
private AccessControl accessControl;
private boolean allowImpossibleTests;
private String accessLogLevel;
private boolean debug;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy