本文整理汇总了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);
}
示例2: contributeJavaScriptStackSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(MappedConfiguration<String, JavaScriptStack> configuration)
{
configuration.addInstance(Angular2JavascriptStack.STACK_ID, Angular2JavascriptStack.class);
}
示例3: contributeBindingSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeBindingSource(MappedConfiguration<String, BindingFactory> config) {
config.addInstance("map", MapBindingFactory.class);
}
示例4: contributeJavaScriptStackSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(MappedConfiguration<String, JavaScriptStack> configuration) {
configuration.addInstance(AppFuseSymbolConstants.BOOTSTRAP_STACK, BootstrapJavaScriptStack.class);
}
示例5: contributeJavaScriptStackSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(
MappedConfiguration<String, JavaScriptStack> configuration) {
configuration.addInstance(DimpleStack.STACK_ID, DimpleStack.class);
}
示例6: contributeJavaScriptStackSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public static void contributeJavaScriptStackSource(
MappedConfiguration<String, JavaScriptStack> configuration) {
configuration.addInstance(D3Stack.STACK_ID, D3Stack.class);
}
示例7: contributeApplicationConfigurationSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
/**
* @category Contribution
*/
public void contributeApplicationConfigurationSource(
MappedConfiguration<String, Object> configuration) {
configuration.addInstance("iterApplication", IterApplication.class);
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例12: contributeApplicationConfigurationSource
import org.apache.tapestry5.ioc.MappedConfiguration; //导入方法依赖的package包/类
public void contributeApplicationConfigurationSource(
MappedConfiguration<String, Object> configuration) {
configuration.addInstance("NestedBean", NestedBean.class);
}