当前位置: 首页>>代码示例>>Java>>正文


Java MappedConfiguration.addInstance方法代码示例

本文整理汇总了Java中org.apache.tapestry5.ioc.MappedConfiguration.addInstance方法的典型用法代码示例。如果您正苦于以下问题:Java MappedConfiguration.addInstance方法的具体用法?Java MappedConfiguration.addInstance怎么用?Java MappedConfiguration.addInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.tapestry5.ioc.MappedConfiguration的用法示例。


在下文中一共展示了MappedConfiguration.addInstance方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: contributeTestSuiteEvolverSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
/**
 * @category Contribution
 * 
 * @param contributions
 * @param plasticity
 */
public void contributeTestSuiteEvolverSource(
		MappedConfiguration<String, TestSuiteEvolver> contributions,
		@InjectService("PlasticityTestSuiteEvolver") TestSuiteEvolver plasticity) {

	// Always there !
	contributions.addInstance("default", StopTestSuiteEvolution.class);
	// ESEC-FSE
	contributions.add("plasticity", plasticity);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:16,代码来源:IterModule.java

示例2: contributeJavaScriptStackSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(MappedConfiguration<String, JavaScriptStack> configuration)
{
 	configuration.addInstance(Angular2JavascriptStack.STACK_ID, Angular2JavascriptStack.class);
}
 
开发者ID:ffacon,项目名称:tapestry5-angular2,代码行数:5,代码来源:Angular2Module.java

示例3: contributeBindingSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeBindingSource(MappedConfiguration<String, BindingFactory> config) {
    config.addInstance("map", MapBindingFactory.class);
}
 
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:4,代码来源:AppModule.java

示例4: contributeJavaScriptStackSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(MappedConfiguration<String, JavaScriptStack> configuration) {
    configuration.addInstance(AppFuseSymbolConstants.BOOTSTRAP_STACK, BootstrapJavaScriptStack.class);
}
 
开发者ID:dlwhitehurst,项目名称:musicrecital,代码行数:4,代码来源:AppModule.java

示例5: contributeJavaScriptStackSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(
		MappedConfiguration<String, JavaScriptStack> configuration) {
	
	configuration.addInstance(DimpleStack.STACK_ID, DimpleStack.class);
}
 
开发者ID:got5,项目名称:tapestry5-d3,代码行数:6,代码来源:DimpleModule.java

示例6: contributeJavaScriptStackSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(
		MappedConfiguration<String, JavaScriptStack> configuration) {
	
	configuration.addInstance(D3Stack.STACK_ID, D3Stack.class);
}
 
开发者ID:got5,项目名称:tapestry5-d3,代码行数:6,代码来源:D3Module.java

示例7: contributeApplicationConfigurationSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
/**
 * @category Contribution
 */
public void contributeApplicationConfigurationSource(
		MappedConfiguration<String, Object> configuration) {
	configuration.addInstance("iterApplication", IterApplication.class);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:8,代码来源:IterModule.java

示例8: provideEncoder

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
@Contribute(ValueEncoderSource.class)
public static void provideEncoder(MappedConfiguration<Class, ValueEncoder> configuration){
	configuration.addInstance(OAuthClient.class, ClientValueEncoder.class);
}
 
开发者ID:vladaspasic,项目名称:tapestry-oauth,代码行数:5,代码来源:OAuthModule.java

示例9: contributePaymentSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributePaymentSource(MappedConfiguration<Class, PaymentSource> configuration) {
	configuration.addInstance(PayPalPayment.class,PayPalPaymentSource.class);
	configuration.addInstance(CreditCardPayment.class,CreditCardPaymentSource.class);
}
 
开发者ID:trsvax,项目名称:tapestry-paypal-rest,代码行数:5,代码来源:PayPalModule.java

示例10: contributeApplicationConfigurationSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public void contributeApplicationConfigurationSource(
		MappedConfiguration<String, Object> configuration) {

	configuration.addInstance("beanURL", BeanWithURL.class);

	configuration.add("beanA", new BeanA());
	configuration.add("beanFOO", new BeanFOO());

}
 
开发者ID:alessiogambi,项目名称:tapestry5-cli,代码行数:10,代码来源:TestModule.java

示例11: contributeTranslatorAlternatesSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
/**
 * Contributes alternate {@link Translator}s.
 * 
 * @param configuration a {@link MappedConfiguration}.
 * @see DateTimeTranslator
 * @see TagsTranslator
 */
public static void contributeTranslatorAlternatesSource(
		MappedConfiguration<String, Translator<?>> configuration) { 
	configuration.addInstance("datetime", DateTimeTranslator.class);
	configuration.addInstance("tags", TagsTranslator.class);
}
 
开发者ID:thiagohp,项目名称:eloquentia,代码行数:13,代码来源:AppModule.java

示例12: contributeApplicationConfigurationSource

import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public void contributeApplicationConfigurationSource(
		MappedConfiguration<String, Object> configuration) {

	configuration.addInstance("NestedBean", NestedBean.class);

}
 
开发者ID:alessiogambi,项目名称:tapestry5-cli,代码行数:7,代码来源:ComplexConstraintModule.java


注:本文中的org.apache.tapestry5.ioc.MappedConfiguration.addInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。