Skip to content

Commit

Permalink
Refactor code and packages
Browse files Browse the repository at this point in the history
- Relocate ModuleDescriptor, ModuleDescriptorFactory to grails.plugins

- Relocate AbstractModuleDescriptor to grails.plugins.descriptors
  • Loading branch information
rainboyan committed Mar 9, 2023
1 parent c9f2b04 commit 1d63ab9
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/grails/plugins/DynamicPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
package grails.plugins

import grails.plugins.module.ModuleDescriptor
import org.rainboyan.plugins.ModuleDescriptorFactory
import grails.plugins.ModuleDescriptor
import grails.plugins.ModuleDescriptorFactory
import org.springframework.beans.factory.NoSuchBeanDefinitionException

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package grails.plugins.module;
package grails.plugins;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.rainboyan.plugins;
package grails.plugins;

import org.springframework.context.ApplicationContextAware;

import grails.plugins.exceptions.PluginException;
import grails.plugins.module.ModuleDescriptor;

/**
* ModuleDescriptorFactory, register {@link ModuleDescriptor}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package grails.plugins.module;
package grails.plugins.descriptors;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

import grails.plugins.GrailsPlugin;
import grails.plugins.ModuleDescriptor;
import grails.plugins.exceptions.PluginException;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/groovy/grails/plugins/module/ModuleType.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import grails.plugins.ModuleDescriptor;

/**
* Indicates that the module type on {@link ModuleDescriptor}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

import grails.plugins.GrailsPlugin;
import grails.plugins.GrailsPluginManager;
import grails.plugins.ModuleDescriptor;
import grails.plugins.PluginManagerAware;
import grails.plugins.module.ModuleDescriptor;

/**
* DynamicModulesManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
import org.springframework.context.ApplicationContext;

import grails.plugins.exceptions.PluginException;
import grails.plugins.module.ModuleDescriptor;
import grails.plugins.ModuleDescriptor;
import grails.plugins.ModuleDescriptorFactory;

/**
* Default implementation of {@link ModuleDescriptorFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import org.springframework.context.event.ContextRefreshedEvent
import grails.plugins.DynamicPlugin
import grails.plugins.GrailsPlugin
import grails.plugins.GrailsPluginManager
import grails.plugins.module.ModuleDescriptor
import grails.plugins.ModuleDescriptor
import grails.plugins.ModuleDescriptorFactory
import grails.plugins.module.ModuleType
import grails.util.GrailsNameUtils

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.function.Predicate;

import grails.plugins.GrailsPlugin;
import grails.plugins.module.ModuleDescriptor;
import grails.plugins.ModuleDescriptor;

/**
* DynamicModulesManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.springframework.beans.BeanWrapperImpl
import org.springframework.context.ApplicationContext

import grails.plugins.GrailsPlugin
import grails.plugins.module.ModuleDescriptor
import grails.plugins.ModuleDescriptor
import grails.util.GrailsClassUtils
import grails.util.GrailsMetaClassUtils

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import org.rainboyan.plugins.DynamicModulesManager
import org.springframework.context.ApplicationContext

import grails.plugins.*
import grails.plugins.module.ModuleDescriptor
import grails.plugins.ModuleDescriptor
import grails.util.GrailsMetaClassUtils

@CompileStatic
Expand Down

0 comments on commit 1d63ab9

Please sign in to comment.