Skip to content

Commit

Permalink
Refactor 'org.codehaus' -> 'org.grails' for 'grails-core'
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher authored and graemerocher committed Jun 20, 2014
1 parent db1b18c commit 52325f1
Show file tree
Hide file tree
Showing 139 changed files with 1,496 additions and 1,459 deletions.
Expand Up @@ -23,9 +23,9 @@ package org.codehaus.groovy.grails.commons
* @author Chanwit Kaewkasi * @author Chanwit Kaewkasi
* *
* @since 0.1 * @since 0.1
* @deprecated Use {@link org.grails.core.support.GrailsApplicationFactoryBean} instead * @deprecated Use {@link org.grails.spring.beans.factory.GrailsApplicationFactoryBean} instead
*/ */
@Deprecated @Deprecated
class GrailsApplicationFactoryBean extends org.grails.core.support.GrailsApplicationFactoryBean{ class GrailsApplicationFactoryBean extends org.grails.spring.beans.factory.GrailsApplicationFactoryBean{


} }
Expand Up @@ -17,7 +17,7 @@ package org.codehaus.groovy.grails.commons.spring


import groovy.transform.CompileStatic import groovy.transform.CompileStatic
import grails.core.GrailsApplication import grails.core.GrailsApplication
import org.codehaus.groovy.grails.plugins.GrailsPluginManager import grails.plugins.GrailsPluginManager
import org.springframework.context.ApplicationContext import org.springframework.context.ApplicationContext


/** /**
Expand Down
@@ -0,0 +1,30 @@
/*
* Copyright 2004-2005 the original author or authors.
*
* 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.codehaus.groovy.grails.plugins

import grails.core.GrailsApplication
import groovy.transform.CompileStatic

/**
* @deprecated Use {@link org.grails.plugins.AbstractGrailsPlugin} instead
*/
@Deprecated
@CompileStatic
abstract class AbstractGrailsPlugin extends org.grails.plugins.AbstractGrailsPlugin{
AbstractGrailsPlugin(Class<?> pluginClass, GrailsApplication application) {
super(pluginClass, application)
}
}
@@ -1,5 +1,5 @@
/* /*
* Copyright 2011 SpringSource * Copyright 2004-2005 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
Expand All @@ -15,26 +15,17 @@
*/ */
package org.codehaus.groovy.grails.plugins package org.codehaus.groovy.grails.plugins


import groovy.xml.dom.DOMCategory import grails.core.GrailsApplication
import groovy.transform.CompileStatic


/** /**
* Enables async processing on all filters in the chain
*
* @author Graeme Rocher * @author Graeme Rocher
* @since 2.0 * @deprecated Use {@link org.grails.plugins.AbstractGrailsPluginManager instead}
*/ */
class Servlet3AsyncWebXmlProcessor { @CompileStatic
void process(xml) { @Deprecated
use(DOMCategory) { abstract class AbstractGrailsPluginManager extends org.grails.plugins.AbstractGrailsPluginManager {
def filters = xml.'filter' AbstractGrailsPluginManager(GrailsApplication application) {

super(application)
for (filter in filters) {
if (filter.'async-supported'.length == 0) {
filter.'filter-class' + {
'async-supported'(true)
}
}
}
}
} }
} }
@@ -0,0 +1,48 @@
/*
* Copyright 2004-2005 the original author or authors.
*
* 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.codehaus.groovy.grails.plugins

import grails.core.GrailsApplication
import groovy.transform.CompileStatic
import org.springframework.core.io.Resource


/**
* @deprecated Use {@link grails.plugins.DefaultGrailsPluginManager} instead
*/
@Deprecated
@CompileStatic
class DefaultGrailsPluginManager extends grails.plugins.DefaultGrailsPluginManager {
DefaultGrailsPluginManager(String resourcePath, GrailsApplication application) {
super(resourcePath, application)
}

DefaultGrailsPluginManager(String[] pluginResources, GrailsApplication application) {
super(pluginResources, application)
}

DefaultGrailsPluginManager(Class<?>[] plugins, GrailsApplication application) {
super(plugins, application)
}

DefaultGrailsPluginManager(Resource[] pluginFiles, GrailsApplication application) {
super(pluginFiles, application)
}

DefaultGrailsPluginManager(GrailsApplication application) {
super(application)
}
}
@@ -0,0 +1,25 @@
/*
* Copyright 2006-2007 Graeme Rocher
*
* 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.codehaus.groovy.grails.plugins

/**
* @author Graeme Rocher
* @deprecated Use {@link grails.plugins.PluginManagerAware} instead
*/
@Deprecated
public interface PluginManagerAware extends grails.plugins.PluginManagerAware {

}
@@ -1,6 +1,6 @@
package org.codehaus.groovy.grails.plugins.web.api package org.codehaus.groovy.grails.plugins.web.api


import org.codehaus.groovy.grails.plugins.GrailsPluginManager import grails.plugins.GrailsPluginManager


/** /**
* @deprecated Use {@link org.grails.web.api.CommonWebApi} instead * @deprecated Use {@link org.grails.web.api.CommonWebApi} instead
Expand Down
Expand Up @@ -29,6 +29,7 @@


import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.grails.core.AbstractGrailsApplication;
import org.grails.core.cfg.ConfigurationHelper; import org.grails.core.cfg.ConfigurationHelper;
import grails.core.events.ArtefactAdditionEvent; import grails.core.events.ArtefactAdditionEvent;
import org.grails.core.artefact.*; import org.grails.core.artefact.*;
Expand All @@ -55,8 +56,8 @@
* @author Steven Devijver * @author Steven Devijver
* @author Graeme Rocher * @author Graeme Rocher
* *
* @see org.codehaus.groovy.grails.plugins.GrailsPluginManager * @see grails.plugins.GrailsPluginManager
* @see org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager * @see grails.plugins.DefaultGrailsPluginManager
* @see grails.core.ArtefactHandler * @see grails.core.ArtefactHandler
* @see grails.core.ArtefactInfo * @see grails.core.ArtefactInfo
* @since 0.1 * @since 0.1
Expand Down
Expand Up @@ -15,6 +15,8 @@
*/ */
package grails.core; package grails.core;


import org.grails.core.AbstractGrailsClass;

/** /**
* A default implementation for Grails classes that need to be registered and managed by a GrailsApplication, * A default implementation for Grails classes that need to be registered and managed by a GrailsApplication,
* but don't need any special handling. * but don't need any special handling.
Expand Down
Expand Up @@ -14,10 +14,7 @@
*/ */
package grails.core; package grails.core;


import grails.core.AbstractGrailsApplication; import org.grails.core.AbstractGrailsApplication;
import grails.core.ArtefactHandler;
import grails.core.ArtefactInfo;
import grails.core.GrailsClass;
import groovy.util.ConfigObject; import groovy.util.ConfigObject;


import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.codehaus.groovy.grails.plugins; package grails.plugins;


import grails.util.Environment; import grails.util.Environment;
import groovy.lang.GroovyClassLoader; import groovy.lang.GroovyClassLoader;
Expand All @@ -23,6 +23,8 @@
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.codehaus.groovy.control.CompilationFailedException; import org.codehaus.groovy.control.CompilationFailedException;
import grails.core.GrailsApplication; import grails.core.GrailsApplication;
import org.codehaus.groovy.grails.plugins.GrailsPluginUtils;
import org.grails.plugins.*;
import org.grails.spring.DefaultRuntimeSpringConfiguration; import org.grails.spring.DefaultRuntimeSpringConfiguration;
import org.grails.spring.RuntimeSpringConfiguration; import org.grails.spring.RuntimeSpringConfiguration;
import org.grails.core.exceptions.GrailsConfigurationException; import org.grails.core.exceptions.GrailsConfigurationException;
Expand Down Expand Up @@ -222,7 +224,7 @@ public void informObservers(String pluginName, Map event) {
} }


/* (non-Javadoc) /* (non-Javadoc)
* @see org.codehaus.groovy.grails.plugins.GrailsPluginManager#loadPlugins() * @see grails.plugins.GrailsPluginManager#loadPlugins()
*/ */
public void loadPlugins() throws PluginException { public void loadPlugins() throws PluginException {
if (initialised) { if (initialised) {
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.codehaus.groovy.grails.plugins; package grails.plugins;


import grails.util.BuildScope; import grails.util.BuildScope;
import grails.util.Environment; import grails.util.Environment;
Expand All @@ -24,8 +24,9 @@
import java.util.Map; import java.util.Map;


import grails.core.GrailsApplication; import grails.core.GrailsApplication;
import org.codehaus.groovy.grails.plugins.GrailsPluginInfo;
import org.grails.spring.RuntimeSpringConfiguration; import org.grails.spring.RuntimeSpringConfiguration;
import org.codehaus.groovy.grails.plugins.support.WatchPattern; import org.grails.plugins.support.WatchPattern;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationContextAware;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
Expand All @@ -48,7 +49,7 @@
* @see org.springframework.beans.factory.support.BeanDefinitionRegistry * @see org.springframework.beans.factory.support.BeanDefinitionRegistry
*/ */
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public interface GrailsPlugin extends ApplicationContextAware, Comparable, GrailsPluginInfo { public interface GrailsPlugin extends ApplicationContextAware, Comparable, GrailsPluginInfo, org.codehaus.groovy.grails.plugins.GrailsPlugin {


int EVENT_ON_CHANGE = 0; int EVENT_ON_CHANGE = 0;
int EVENT_ON_CONFIG_CHANGE = 1; int EVENT_ON_CONFIG_CHANGE = 1;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.codehaus.groovy.grails.plugins; package grails.plugins;


import java.io.File; import java.io.File;
import java.util.Collection; import java.util.Collection;
Expand Down
@@ -1,34 +1,34 @@
/* /*
* Copyright 2004-2005 the original author or authors. * Copyright 2004-2005 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.codehaus.groovy.grails.plugins; package grails.plugins;


import java.util.List; import java.util.List;


/** /**
* Defines interface for obtaining a sublist of <code>GrailsPlugin</code> instances * Defines interface for obtaining a sublist of <code>GrailsPlugin</code> instances
* based on an original supplied list of <code>GrailsPlugin</code> instances. * based on an original supplied list of <code>GrailsPlugin</code> instances.
* *
* @author Phil Zoio * @author Phil Zoio
*/ */
public interface PluginFilter { public interface PluginFilter {


/** /**
* Returns a filtered list of plugins. * Returns a filtered list of plugins.
* @param original the original supplied set of <code>GrailsPlugin</code> instances * @param original the original supplied set of <code>GrailsPlugin</code> instances
* @return a sublist of these items * @return a sublist of these items
*/ */
List<GrailsPlugin> filterPluginList(List<GrailsPlugin> original); List<GrailsPlugin> filterPluginList(List<GrailsPlugin> original);
} }
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.codehaus.groovy.grails.plugins; package grails.plugins;


import org.springframework.beans.factory.Aware; import org.springframework.beans.factory.Aware;


Expand Down
Expand Up @@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */


package org.codehaus.groovy.grails.plugins package grails.plugins


/** /**
* Interface for a class that loads plugins * Interface for a class that loads plugins
Expand Down
2 changes: 1 addition & 1 deletion grails-core/src/main/groovy/grails/util/Holders.java
Expand Up @@ -27,7 +27,7 @@
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import grails.core.GrailsApplication; import grails.core.GrailsApplication;
import org.grails.core.io.support.GrailsFactoriesLoader; import org.grails.core.io.support.GrailsFactoriesLoader;
import org.codehaus.groovy.grails.plugins.GrailsPluginManager; import grails.plugins.GrailsPluginManager;
import org.grails.core.support.GrailsApplicationDiscoveryStrategy; import org.grails.core.support.GrailsApplicationDiscoveryStrategy;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.Lifecycle; import org.springframework.context.Lifecycle;
Expand Down

0 comments on commit 52325f1

Please sign in to comment.