SGF-154 - Remove dependency cycles in function execution packages

This commit is contained in:
mpollack
2013-02-06 02:18:08 +08:00
parent 8861e89a97
commit 00c78e394e
30 changed files with 58 additions and 39 deletions

View File

@@ -18,9 +18,8 @@ import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.data.gemfire.function.config.Filter;
import org.springframework.data.gemfire.function.config.GemfireFunctionUtils;
import org.springframework.data.gemfire.function.config.RegionData;
import org.springframework.data.gemfire.function.annotation.Filter;
import org.springframework.data.gemfire.function.annotation.RegionData;
import org.springframework.data.gemfire.util.ArrayUtils;
import org.springframework.util.Assert;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
@@ -20,7 +20,6 @@ import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.data.gemfire.function.PojoFunctionWrapper;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -21,6 +21,7 @@ import java.lang.annotation.Target;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Import;
import org.springframework.data.gemfire.function.config.FunctionExecutionBeanDefinitionRegistrar;
/**
* Enables classpath scanning for interfaces annotated as GemFire function executions (function invocations).

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -20,6 +20,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;
import org.springframework.data.gemfire.function.config.GemfireFunctionPostBeanProcessorRegistrar;
/**
*

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -10,7 +10,7 @@
* 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.gemfire.function.config;
package org.springframework.data.gemfire.function.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -24,6 +24,11 @@ import org.springframework.context.annotation.ClassPathScanningCandidateComponen
import org.springframework.context.annotation.ScannedGenericBeanDefinition;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.type.filter.TypeFilter;
import org.springframework.data.gemfire.function.annotation.OnMember;
import org.springframework.data.gemfire.function.annotation.OnMembers;
import org.springframework.data.gemfire.function.annotation.OnRegion;
import org.springframework.data.gemfire.function.annotation.OnServer;
import org.springframework.data.gemfire.function.annotation.OnServers;
/**
* Annotation based configuration source for function executions

View File

@@ -27,6 +27,7 @@ import org.springframework.core.type.AnnotationMetadata;
import org.springframework.core.type.filter.AnnotationTypeFilter;
import org.springframework.core.type.filter.AssignableTypeFilter;
import org.springframework.core.type.filter.TypeFilter;
import org.springframework.data.gemfire.function.annotation.EnableGemfireFunctionExecutions;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;

View File

@@ -12,6 +12,12 @@
*/
package org.springframework.data.gemfire.function.config;
import org.springframework.data.gemfire.function.annotation.OnMember;
import org.springframework.data.gemfire.function.annotation.OnMembers;
import org.springframework.data.gemfire.function.annotation.OnRegion;
import org.springframework.data.gemfire.function.annotation.OnServer;
import org.springframework.data.gemfire.function.annotation.OnServers;
/**
*
* Maps the annotation type to the corresponding function execution bean definition builder

View File

@@ -19,6 +19,8 @@ import java.util.Map;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.data.gemfire.function.GemfireFunctionUtils;
import org.springframework.data.gemfire.function.annotation.GemfireFunction;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;

View File

@@ -16,7 +16,7 @@ import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import org.springframework.data.gemfire.function.config.FunctionId;
import org.springframework.data.gemfire.function.annotation.FunctionId;
import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;

View File

@@ -15,8 +15,8 @@ package org.springframework.data.gemfire.function.execution;
import java.lang.reflect.Method;
import java.util.Set;
import org.springframework.data.gemfire.function.config.Filter;
import org.springframework.data.gemfire.function.config.GemfireFunctionUtils;
import org.springframework.data.gemfire.function.GemfireFunctionUtils;
import org.springframework.data.gemfire.function.annotation.Filter;