DATACMNS-989 - Polishing.

Introduced overload for CustomRepositoryImplementationDetector.detectCustomImplementation(…) to take a RepositoryConfiguration to simplify the invocation from the Spring container related client. Further simplification to unify invocations also from the CDI implementation to be done in 2.0.

Expose getExcludeFilter() on RepositoryConfiguration to not have to inspect the configuration source on clients.

Formatting and Javadoc. Missing license headers in newly created types.

Original pull request: #195.
This commit is contained in:
Oliver Gierke
2017-03-01 16:24:20 +01:00
parent 3ca77831e1
commit ebd871b566
10 changed files with 125 additions and 39 deletions

View File

@@ -1,5 +1,20 @@
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.repository.config;
public interface MyOtherRepositoryExtensions {
String getImplementationId();
String getImplementationId();
}

View File

@@ -1,8 +1,28 @@
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.repository.config;
public class MyOtherRepositoryImpl implements MyOtherRepositoryExtensions {
@Override
public String getImplementationId() {
return getClass().getName();
}
/*
* (non-Javadoc)
* @see org.springframework.data.repository.config.MyOtherRepositoryExtensions#getImplementationId()
*/
@Override
public String getImplementationId() {
return getClass().getName();
}
}

View File

@@ -1,10 +1,26 @@
/*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.repository.config.excluded;
import org.springframework.data.repository.config.MyOtherRepositoryExtensions;
public class MyOtherRepositoryImpl implements MyOtherRepositoryExtensions {
@Override
public String getImplementationId() {
return getClass().getName();
}
@Override
public String getImplementationId() {
return getClass().getName();
}
}