Skip to content
Permalink
Browse files
Change package names from mifos to apache fineract.
  • Loading branch information
myrle-krantz committed Apr 12, 2018
1 parent 054d7e0 commit 562823965ca23656daf5345f6bddc8c0dba8376d
Showing 27 changed files with 41 additions and 44 deletions.
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.annotation;
package org.apache.fineract.cn.api.annotation;

import org.springframework.http.HttpStatus;

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.annotation;
package org.apache.fineract.cn.api.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.config;
package org.apache.fineract.cn.api.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -28,7 +28,7 @@
* @author Myrle Krantz
*/
@Configuration
@ComponentScan({"io.mifos.core.api.util"})
@ComponentScan({"org.apache.fineract.cn.api.util"})
public class ApiConfiguration {

public static final String LOGGER_NAME = "api-logger";
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.config;
package org.apache.fineract.cn.api.config;

import org.springframework.context.annotation.Import;

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.context;
package org.apache.fineract.cn.api.context;

/**
* @author Myrle Krantz
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.context;
package org.apache.fineract.cn.api.context;

import io.mifos.core.api.util.ApiConstants;
import org.apache.fineract.cn.api.util.ApiConstants;

/**
* @author Myrle Krantz
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.context;
package org.apache.fineract.cn.api.context;

import io.mifos.core.api.util.UserContext;
import io.mifos.core.api.util.UserContextHolder;
import org.apache.fineract.cn.api.util.UserContext;
import org.apache.fineract.cn.api.util.UserContextHolder;

import java.util.Optional;

@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.Feign;
import feign.FeignException;
import feign.Response;
import feign.Util;
import feign.codec.ErrorDecoder;
import io.mifos.core.api.annotation.ThrowsException;
import io.mifos.core.api.annotation.ThrowsExceptions;
import org.apache.fineract.cn.api.annotation.ThrowsException;
import org.apache.fineract.cn.api.annotation.ThrowsExceptions;
import org.slf4j.Logger;
import org.springframework.http.HttpStatus;

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

/**
* @author Myrle Krantz
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.Feign;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import io.mifos.core.api.config.ApiConfiguration;
import org.apache.fineract.cn.api.config.ApiConfiguration;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.*;

@@ -16,14 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.Feign;
import feign.Target;
import feign.codec.Decoder;
import feign.codec.Encoder;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import org.apache.fineract.cn.api.config.ApiConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
@@ -32,8 +33,6 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;

import static io.mifos.core.api.config.ApiConfiguration.LOGGER_NAME;

/**
* @author Myrle Krantz
*/
@@ -79,15 +78,15 @@ public Encoder feignEncoder() {
return new GsonEncoder();
}

@Bean(name = LOGGER_NAME)
@Bean(name = ApiConfiguration.LOGGER_NAME)
public Logger logger() {
return LoggerFactory.getLogger(LOGGER_NAME);
return LoggerFactory.getLogger(ApiConfiguration.LOGGER_NAME);
}

@Bean
@Scope("prototype")
@ConditionalOnMissingBean
public Feign.Builder feignBuilder(@Qualifier(LOGGER_NAME) final Logger logger) {
public Feign.Builder feignBuilder(@Qualifier(ApiConfiguration.LOGGER_NAME) final Logger logger) {
return new AnnotatedErrorDecoderFeignBuilder(logger);
}
}
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.RequestInterceptor;
import feign.RequestTemplate;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

/**
* @author Myrle Krantz
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

/**
* @author Myrle Krantz
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

/**
* @author Myrle Krantz
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

/**
* @author Myrle Krantz
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import static org.apache.fineract.cn.lang.config.TenantHeaderFilter.TENANT_HEADER;

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.RequestInterceptor;
import feign.RequestTemplate;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import javax.annotation.Nonnull;
import java.util.Objects;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import org.springframework.util.Assert;

@@ -16,14 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.context;
package org.apache.fineract.cn.api.context;

import io.mifos.core.api.util.UserContextHolder;
import org.apache.fineract.cn.api.util.UserContextHolder;
import org.junit.Assert;
import org.junit.Test;

import java.util.Optional;

/**
* @author Myrle Krantz
*/
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.Feign;
import feign.FeignException;
import feign.Response;
import io.mifos.core.api.annotation.ThrowsException;
import org.apache.fineract.cn.api.annotation.ThrowsException;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.Request;
import feign.RequestTemplate;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.RequestTemplate;
import org.apache.fineract.cn.lang.TenantContextHolder;
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import feign.RequestTemplate;
import io.mifos.core.api.context.AutoUserContext;
import org.apache.fineract.cn.api.context.AutoUserContext;
import org.junit.Assert;
import org.junit.Test;

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.api.util;
package org.apache.fineract.cn.api.util;

import org.apache.commons.lang.RandomStringUtils;
import org.junit.Assert;

0 comments on commit 5628239

Please sign in to comment.