-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Geogig plugin to incorporate web api conversion to spring.
Signed-off-by: Johnathan Garrett <jd@prominentedge.com>
- Loading branch information
Showing
31 changed files
with
925 additions
and
970 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/community/geogig/src/main/java/org/geogig/geoserver/rest/GeogigBeanNameGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geogig.geoserver.rest; | ||
|
||
import org.springframework.beans.factory.config.BeanDefinition; | ||
import org.springframework.beans.factory.support.BeanDefinitionRegistry; | ||
import org.springframework.context.annotation.AnnotationBeanNameGenerator; | ||
|
||
/** | ||
* Bean name generator that prefixes geogig in front of the default bean name to avoid naming conflicts between geogig and geoserver beans. | ||
*/ | ||
public class GeogigBeanNameGenerator extends AnnotationBeanNameGenerator { | ||
|
||
public GeogigBeanNameGenerator() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public String generateBeanName(BeanDefinition arg0, BeanDefinitionRegistry arg1) { | ||
return "geogig" + super.generateBeanName(arg0, arg1); | ||
} | ||
|
||
} |
Oops, something went wrong.