-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from yy1098029419/feautre/EnableFenix_20200817
修改EnableFenix注解,使其支持EnableJpaRepository注解的属性
- Loading branch information
Showing
2 changed files
with
172 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/blinkfox/fenix/FenixJpaRepositoriesRegistrar.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,23 @@ | ||
package com.blinkfox.fenix; | ||
|
||
import java.lang.annotation.Annotation; | ||
import org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension; | ||
import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport; | ||
import org.springframework.data.repository.config.RepositoryConfigurationExtension; | ||
|
||
/** | ||
* {@link EnableFenix} 启用的注册器. | ||
* @author yangwenpeng | ||
* @since v2.3.5 | ||
*/ | ||
public class FenixJpaRepositoriesRegistrar extends RepositoryBeanDefinitionRegistrarSupport { | ||
@Override | ||
protected Class<? extends Annotation> getAnnotation() { | ||
return EnableFenix.class; | ||
} | ||
|
||
@Override | ||
protected RepositoryConfigurationExtension getExtension() { | ||
return new JpaRepositoryConfigExtension(); | ||
} | ||
} |