![JAR search and dependency download from the Maven repository](/logo.png)
org.androidtransfuse.bootstrap.ExistingVariableInjectionBuilderFactory Maven / Gradle / Ivy
The newest version!
/**
* Copyright 2011-2015 John Ericksen
*
* 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.androidtransfuse.bootstrap;
import com.sun.codemodel.JExpression;
import org.androidtransfuse.gen.ExceptionWrapper;
import org.androidtransfuse.gen.ExpressionMatchingListFactory;
import org.androidtransfuse.gen.InjectionExpressionBuilder;
import org.androidtransfuse.gen.InvocationBuilder;
import org.androidtransfuse.gen.variableDecorator.TypedExpressionFactory;
import org.androidtransfuse.validation.Validator;
/**
* @author John Ericksen
*/
public class ExistingVariableInjectionBuilderFactory {
private final InvocationBuilder injectionInvocationBuilder;
private final InjectionExpressionBuilder injectionExpressionBuilder;
private final TypedExpressionFactory typedExpressionFactory;
private final ExceptionWrapper exceptionWrapper;
private final ExpressionMatchingListFactory generatorFactory;
private final Validator validator;
public ExistingVariableInjectionBuilderFactory(InvocationBuilder injectionInvocationBuilder,
InjectionExpressionBuilder injectionExpressionBuilder,
TypedExpressionFactory typedExpressionFactory,
ExceptionWrapper exceptionWrapper,
ExpressionMatchingListFactory generatorFactory,
Validator validator) {
this.injectionInvocationBuilder = injectionInvocationBuilder;
this.injectionExpressionBuilder = injectionExpressionBuilder;
this.typedExpressionFactory = typedExpressionFactory;
this.exceptionWrapper = exceptionWrapper;
this.generatorFactory = generatorFactory;
this.validator = validator;
}
public ExistingVariableInjectionBuilder buildVariableBuilder(JExpression expression){
return new ExistingVariableInjectionBuilder(expression,
injectionInvocationBuilder,
injectionExpressionBuilder,
typedExpressionFactory,
exceptionWrapper,
generatorFactory,
validator);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy