Skip to content

Commit

Permalink
Refactor plugin
Browse files Browse the repository at this point in the history
Rename to `org.graceframework.views` package
  • Loading branch information
rainboyan committed Jun 4, 2024
1 parent 96ba647 commit 22a75a9
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions plugin/src/main/groovy/grace/views/Component.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import grails.web.api.WebAttributes
import org.grails.buffer.FastStringWriter
import org.grails.encoder.Encoder
import org.grails.taglib.encoder.WithCodecHelper
import org.graceframework.plugin.components.artefact.ComponentArtefactHandler
import org.graceframework.plugin.util.StringUtils
import org.graceframework.views.components.artefact.ComponentArtefactHandler
import org.graceframework.views.util.StringUtils

/**
* Component trait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.graceframework.plugin.components.artefact;
package org.graceframework.views.components.artefact;

import grace.views.GrailsComponentClass;
import grails.core.ArtefactHandlerAdapter;
import org.graceframework.plugin.components.component.DefaultGrailsComponentClass;
import org.graceframework.views.components.component.DefaultGrailsComponentClass;

/**
* Grails View Component.
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 org.graceframework.plugin.components.component;
package org.graceframework.views.components.component;

import grace.views.GrailsComponentClass;
import org.grails.core.AbstractInjectableGrailsClass;
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 org.graceframework.plugin.components.taglib
package org.graceframework.views.components.taglib

import groovy.transform.CompileStatic
import org.springframework.beans.factory.InitializingBean
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 org.graceframework.plugin.components.taglib;
package org.graceframework.views.components.taglib;

import java.util.Map;

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 org.graceframework.plugin.components.taglib
package org.graceframework.views.components.taglib

import groovy.transform.CompileStatic
import org.apache.commons.beanutils.BeanUtils as CommonsBeanUtils
Expand All @@ -30,7 +30,7 @@ import grails.core.support.GrailsApplicationAware
import grails.gsp.TagLib
import grails.util.GrailsNameUtils

import org.graceframework.plugin.components.artefact.ComponentArtefactHandler
import org.graceframework.views.components.artefact.ComponentArtefactHandler

/**
* Component TagLib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.graceframework.plugin.components
package org.graceframework.views.plugin

import grails.plugins.*

import org.graceframework.plugin.components.taglib.ComponentTagLib
import org.graceframework.views.components.taglib.ComponentTagLib

class ViewComponentsGrailsPlugin extends Plugin {

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 org.graceframework.plugin.util;
package org.graceframework.views.util;

import static grails.util.GrailsNameUtils.getNaturalName;

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/resources/META-INF/grails-plugin.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<plugin name='viewComponents'>
<type>org.graceframework.plugin.components.ViewComponentsGrailsPlugin</type>
<type>org.graceframework.views.plugin.ViewComponentsGrailsPlugin</type>
</plugin>
6 changes: 3 additions & 3 deletions plugin/src/main/resources/META-INF/grails.factories
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
grails.compiler.traits.TraitInjector=grace.compiler.traits.ComponentTraitInjector,grace.compiler.traits.ControllerComponentTraitInjector
grails.core.ArtefactHandler=org.graceframework.plugin.components.artefact.ComponentArtefactHandler
org.grails.taglib.TagInvocationContextCustomizer=org.graceframework.plugin.components.taglib.ComponentTagInvocationContextCustomizer
org.grails.taglib.NamespacedTagDispatcher=org.graceframework.plugin.components.taglib.ComponentNamespacedTagDispatcher
grails.core.ArtefactHandler=org.graceframework.views.components.artefact.ComponentArtefactHandler
org.grails.taglib.TagInvocationContextCustomizer=org.graceframework.views.components.taglib.ComponentTagInvocationContextCustomizer
org.grails.taglib.NamespacedTagDispatcher=org.graceframework.views.components.taglib.ComponentNamespacedTagDispatcher

0 comments on commit 22a75a9

Please sign in to comment.