Remove leftover files from old refactoring
git-svn-id: https://svn.apache.org/repos/asf/onami/trunk@1610196 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/AbstractLifeCycleModule.java b/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/AbstractLifeCycleModule.java
deleted file mode 100644
index 81e2c83..0000000
--- a/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/AbstractLifeCycleModule.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package org.apache.onami.lifecycle.core;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-import com.google.inject.AbstractModule;
-import com.google.inject.TypeLiteral;
-import com.google.inject.matcher.Matcher;
-
-import java.lang.annotation.Annotation;
-import java.util.ArrayList;
-import java.util.List;
-
-import static com.google.inject.matcher.Matchers.any;
-
-/**
- * Abstract implementation of a module that requires an ordered list
- * of annotation types and a type matcher.
- */
-abstract class AbstractLifeCycleModule
- extends AbstractModule
-{
-
- /**
- * The annotation types the scanner will look for in the types methods
- * in the order that they will be matched.
- */
- private final List<Class<? extends Annotation>> annotationTypes;
-
- /**
- * The type matcher to filter classes where looking for lifecycle annotations.
- */
- private final Matcher<? super TypeLiteral<?>> typeMatcher;
-
- /**
- * Creates a new module which looks for the input lifecycle annotation on methods in any type.
- *
- * @param annotationType the lifecycle annotation to be searched.
- */
- public <A extends Annotation> AbstractLifeCycleModule( Class<A> annotationType )
- {
- this( ListBuilder.builder( annotationType ).build(), any() );
- }
-
- /**
- * Creates a new module which looks for the input lifecycle annotation on methods
- * in types filtered by the input matcher.
- *
- * @param annotationType the lifecycle annotation to be searched.
- * @param typeMatcher the filter for injectee types.
- */
- public <A extends Annotation> AbstractLifeCycleModule( Class<A> annotationType,
- Matcher<? super TypeLiteral<?>> typeMatcher )
- {
- this( ListBuilder.builder( annotationType ).build(), typeMatcher );
- }
-
- /**
- * Creates a new module which looks for the input lifecycle annotations on methods in any type.
- *
- * @param annotationTypes the lifecycle annotations to be searched in the order to be searched.
- */
- public AbstractLifeCycleModule( List<Class<? extends Annotation>> annotationTypes )
- {
- this( annotationTypes, any() );
- }
-
- /**
- * Creates a new module which looks for the input lifecycle annotations on methods
- * in types filtered by the input matcher.
- *
- * @param annotationTypes the lifecycle annotations to be searched in the order to be searched.
- * @param typeMatcher the filter for injectee types.
- */
- public AbstractLifeCycleModule( List<Class<? extends Annotation>> annotationTypes,
- Matcher<? super TypeLiteral<?>> typeMatcher )
- {
- if ( annotationTypes == null )
- {
- throw new IllegalArgumentException( "annotationType must be specified" );
- }
- if ( typeMatcher == null )
- {
- throw new IllegalArgumentException( "typeMatcher must be specified" );
- }
- this.annotationTypes = new ArrayList<Class<? extends Annotation>>( annotationTypes );
- this.typeMatcher = typeMatcher;
- }
-
- /**
- * Returns the ordered annotation types the scanner will look for in the types methods.
- *
- * @return The ordered annotation types the scanner will look for in the types methods.
- */
- protected final List<Class<? extends Annotation>> getAnnotationTypes()
- {
- return annotationTypes;
- }
-
- /**
- * Returns the type matcher to filter classes where looking for lifecycle annotations.
- *
- * @return the type matcher to filter classes where looking for lifecycle annotations.
- */
- protected final Matcher<? super TypeLiteral<?>> getTypeMatcher()
- {
- return typeMatcher;
- }
-
-}
diff --git a/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/ListBuilder.java b/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/ListBuilder.java
deleted file mode 100644
index a819cf8..0000000
--- a/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/ListBuilder.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package org.apache.onami.lifecycle.core;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
- */
-
-import java.lang.annotation.Annotation;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Convenience for building lists of annotations
- */
-public class ListBuilder
-{
- private final List<Class<? extends Annotation>> list = new ArrayList<Class<? extends Annotation>>();
-
- /**
- * Return a new builder.
- *
- * @return new builder
- */
- public static ListBuilder builder()
- {
- return new ListBuilder();
- }
-
- /**
- * Return a new builder which has the input annotation as the first item.
- *
- * @param annotationClass annotation to initialize the list with.
- * @return new builder.
- */
- public static ListBuilder builder( Class<? extends Annotation> annotationClass )
- {
- return new ListBuilder().append( annotationClass );
- }
-
- /**
- * Append the input annotation to the list that is being built.
- *
- * @param annotationClass annotation to append.
- * @return self
- */
- public ListBuilder append( Class<? extends Annotation> annotationClass )
- {
- list.add( annotationClass );
- return this;
- }
-
- /**
- * Build and return the list.
- *
- * @return list with the built annotations.
- */
- public List<Class<? extends Annotation>> build()
- {
- return new ArrayList<Class<? extends Annotation>>( list );
- }
-
- /**
- * Hidden constructor, this class must be not instantiated directly.
- */
- private ListBuilder()
- {
- // do nothing
- }
-
-}