All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nepxion.permission.configuration.PermissionAopConfiguration Maven / Gradle / Ivy

package com.nepxion.permission.configuration;

/**
 * 

Title: Nepxion Permission

*

Description: Nepxion Permission

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.nepxion.permission.aop.PermissionAuthorization; import com.nepxion.permission.aop.PermissionAutoScanProxy; import com.nepxion.permission.aop.PermissionInterceptor; import com.nepxion.permission.aop.PermissionPersister; import com.nepxion.permission.constant.PermissionConstant; import com.nepxion.permission.context.PermissionFeignBeanFactoryPostProcessor; @Configuration public class PermissionAopConfiguration { static { System.out.println(""); System.out.println("╔═══╗"); System.out.println("║╔═╗║"); System.out.println("║╚═╝╠══╦═╦╗╔╦╦══╦══╦╦══╦══╗"); System.out.println("║╔══╣║═╣╔╣╚╝╠╣══╣══╬╣╔╗║╔╗║"); System.out.println("║║ ║║═╣║║║║║╠══╠══║║╚╝║║║║"); System.out.println("╚╝ ╚══╩╝╚╩╩╩╩══╩══╩╩══╩╝╚╝"); System.out.println("Nepxion Permission v1.0.25"); System.out.println(""); } @Value("${" + PermissionConstant.PERMISSION_SCAN_PACKAGES + ":}") private String scanPackages; @Bean public PermissionAutoScanProxy permissionAutoScanProxy() { return new PermissionAutoScanProxy(scanPackages); } @Bean public PermissionInterceptor permissionInterceptor() { return new PermissionInterceptor(); } @Bean public PermissionAuthorization permissionAuthorization() { return new PermissionAuthorization(); } @Bean public PermissionPersister permissionPersister() { return new PermissionPersister(); } @Bean public PermissionFeignBeanFactoryPostProcessor permissionFeignBeanFactoryPostProcessor() { return new PermissionFeignBeanFactoryPostProcessor(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy