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


Java Symbol类代码示例

本文整理汇总了Java中org.apache.tapestry5.ioc.annotations.Symbol的典型用法代码示例。如果您正苦于以下问题:Java Symbol类的具体用法?Java Symbol怎么用?Java Symbol使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Symbol类属于org.apache.tapestry5.ioc.annotations包,在下文中一共展示了Symbol类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupJSModules

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
@Contribute(ModuleManager.class)
public static void setupJSModules(final MappedConfiguration<String, JavaScriptModuleConfiguration> configuration,
    @Path("classpath:de/eddyson/tapestry/react/select/react-select.js") final Resource reactSelect,
    @Path("classpath:de/eddyson/tapestry/react/select/react-select.min.js") final Resource reactSelectMin,
    @Path("classpath:de/eddyson/tapestry/react/select/react-input-autosize.js") final Resource reactInputautoSize,
    @Path("classpath:de/eddyson/tapestry/react/select/react-input-autosize.min.js") final Resource reactInputautoSizeMin,
    @Path("classpath:de/eddyson/tapestry/react/select/classnames.js") final Resource classnames,
    @Symbol(ReactSelectSymbols.CONTRIBUTE_CLASSNAMES_MODULE) final boolean contributeClassnamesModule,
    @Symbol(ReactSelectSymbols.CONTRIBUTE_REACT_INPUT_AUTOSIZE_MODULE) final boolean contributeInputAutosizeModule,
    @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode) throws IOException {
  if (contributeClassnamesModule) {
    configuration.add("classnames", new JavaScriptModuleConfiguration(classnames));
  }
  if (contributeInputAutosizeModule) {
    configuration.add("react-input-autosize",
        new JavaScriptModuleConfiguration(productionMode ? reactInputautoSizeMin : reactInputautoSize));
  }
  configuration.add("react-select", new JavaScriptModuleConfiguration(productionMode ? reactSelectMin : reactSelect));
}
 
开发者ID:eddyson-de,项目名称:tapestry-react-select,代码行数:20,代码来源:ReactSelectModule.java

示例2: Angular2JavascriptStack

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public Angular2JavascriptStack(@Symbol(SymbolConstants.PRODUCTION_MODE)
                               final boolean productionMode,
                               @Path("webjars:es6-shim:es6-shim.js") final Resource es6_shim, 
                               @Path("webjars:zone.js:$version/dist/zone.js") final Resource zoneJs,
                               @Path("webjars:reflect-metadata:$version/Reflect.js") final Resource reflectMetadata,
                               @Path("webjars:systemjs:dist/system.src.js") final Resource systemjs, 
                               @Path("webjars:rxjs:bundles/Rx.js") final Resource rx,
                               @Path("webjars:angular__core:$version/bundles/core.umd.js") final Resource angular2,	
                               final AssetSource assetSource)
{
    this.productionMode = productionMode;
    
    this.es6_shim = es6_shim; 
    this.zoneJs = zoneJs;
    this.reflectMetadata = reflectMetadata;
    this.systemjs = systemjs;
    this.rx = rx;
    this.angular2 = angular2;
    
    this.assetSource = assetSource;
  
}
 
开发者ID:ffacon,项目名称:tapestry5-angular2,代码行数:23,代码来源:Angular2JavascriptStack.java

示例3: warmMinifiedJavascriptCache

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
@Contribute(Runnable.class)
public static void warmMinifiedJavascriptCache(
    final MinificationCacheWarming minificationCacheWarming,
    @Symbol(MinificationCacheWarmingSymbols.ENABLE_MINIFICATION_CACHE_WARMING) final boolean minificationCacheWarmingEnabled,
    final OrderedConfiguration<Runnable> configuration) {

  if (minificationCacheWarmingEnabled) {
    configuration.add("MinificationCacheWarming", new Runnable() {

      @Override
      public void run() {
        try {
          minificationCacheWarming.warmMinificationCache();
        } catch (Exception e) {
          throw new RuntimeException("Error warming minification cache", e);
        }
        startupComplete = true;
      }
    });
  }
}
 
开发者ID:eddyson-de,项目名称:tapestry-minification-cache-warming,代码行数:22,代码来源:MinificationCacheWarmingModule.java

示例4: setupJSModules

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
@Contribute(ModuleManager.class)
public static void setupJSModules(final MappedConfiguration<String, JavaScriptModuleConfiguration> configuration,
    final AssetSource assetSource, @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode,
    @Symbol(ReactSymbols.REACT_ASSET_PATH) final String reactAssetPath,
    @Symbol(ReactSymbols.REACT_ASSET_PATH_PRODUCTION) final String reactAssetPathProduction,
    @Symbol(ReactSymbols.REACT_DOM_ASSET_PATH) final String reactDomAssetPath,
    @Symbol(ReactSymbols.REACT_DOM_ASSET_PATH_PRODUCTION) final String reactDomAssetPathProduction,
    @Symbol(ReactSymbols.PROP_TYPES_ASSET_PATH) final String propTypesAssetPath,
    @Symbol(ReactSymbols.PROP_TYPES_ASSET_PATH_PRODUCTION) final String propTypesAssetPathProduction) {

  configuration.add("react", new JavaScriptModuleConfiguration(
      assetSource.resourceForPath(productionMode ? reactAssetPathProduction : reactAssetPath)));
  configuration.add("react-dom", new JavaScriptModuleConfiguration(
      assetSource.resourceForPath(productionMode ? reactDomAssetPathProduction : reactDomAssetPath)));
  configuration.add("prop-types", new JavaScriptModuleConfiguration(
      assetSource.resourceForPath(productionMode ? propTypesAssetPathProduction : propTypesAssetPath)));
}
 
开发者ID:eddyson-de,项目名称:tapestry-react,代码行数:18,代码来源:ReactModule.java

示例5: scheduleJobs

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
@Startup
public static void scheduleJobs(ParallelExecutor executor,
		final IMemoryDB memoryDb,
		@Inject @Symbol(USE_MEMDB_PARAMETER) final String useMemoryDB,
		@Inject @Symbol(MAX_MEMDB_ROWS_PARAMETER) final String maxRecords) {

	System.out.println(USE_MEMDB_PARAMETER + "=" + useMemoryDB);
	System.out.println(MAX_MEMDB_ROWS_PARAMETER + "=" + maxRecords);
	if ("true".equalsIgnoreCase(useMemoryDB)) {
		System.out
				.println("Scheduling parallel job to load in-memory database.");
		executor.invoke(IMemoryDB.class, new Invokable<IMemoryDB>() {
			@Override
			public IMemoryDB invoke() {
				memoryDb.initialize(FastNumberUtils
						.parseIntWithCheck(maxRecords));
				return memoryDb;
			}
		});
	}
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:22,代码来源:WalkerDAOModule.java

示例6: buildRandomSinusLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildRandomSinusLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,

		@Symbol(IterSymbolsNames.N_BINS) int nBins,

		@Symbol(SinusLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(SinusLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(SinusLoadGenerator.FREQUENCY_LB) double frequencyLB,
		@Symbol(SinusLoadGenerator.FREQUENCY_UB) double frequencyUB,

		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration

) {

	InputSampler randomSampler = new RandomInputSampler();

	return new SinusLoadGenerator(logger, "RandomSinusLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, amplitudeLB, amplitudeUB, frequencyLB,
			frequencyUB, nBins, randomSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:27,代码来源:LoadGeneratorModule.java

示例7: buildLHSSinusLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildLHSSinusLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		// I do not like this approach... This is dependend on the Input
		// args ...Options
		// So make it dependent on them !!
		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(SinusLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(SinusLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(SinusLoadGenerator.FREQUENCY_LB) double frequencyLB,
		@Symbol(SinusLoadGenerator.FREQUENCY_UB) double frequencyUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler lhsSampler = new LatinHypercubeInputSampler();

	return new SinusLoadGenerator(logger, "LHSSinusLoadGenerator", coercer,
			traceGeneratorWebService, jmeterClientsURL, manifestURL,
			amplitudeLB, amplitudeUB, frequencyLB, frequencyUB, nBins,
			lhsSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:25,代码来源:LoadGeneratorModule.java

示例8: buildRandomTriangleLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildRandomTriangleLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(TriangleLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(TriangleLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(TriangleLoadGenerator.PERIOD_LB) double periodLB,
		@Symbol(TriangleLoadGenerator.PERIOD_UB) double periodUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler randomSampler = new RandomInputSampler();

	return new TriangleLoadGenerator(logger, "RandomTriangleLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, amplitudeLB, amplitudeUB, periodLB, periodUB,
			nBins, randomSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例9: buildLHSTriangleLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildLHSTriangleLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(TriangleLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(TriangleLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(TriangleLoadGenerator.PERIOD_LB) double periodLB,
		@Symbol(TriangleLoadGenerator.PERIOD_UB) double periodUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler lhsSampler = new LatinHypercubeInputSampler();

	return new TriangleLoadGenerator(logger, "LHSTriangleLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, amplitudeLB, amplitudeUB, periodLB, periodUB,
			nBins, lhsSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例10: buildRandomSawToothLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildRandomSawToothLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(SawToothLoadGenerator.STEP_LB) double stepLB,
		@Symbol(SawToothLoadGenerator.STEP_UB) double stepUB,
		@Symbol(SawToothLoadGenerator.PERIOD_LB) double periodLB,
		@Symbol(SawToothLoadGenerator.PERIOD_UB) double periodUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler randomSampler = new RandomInputSampler();

	return new SawToothLoadGenerator(logger, "RandomSawToothLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, stepLB, stepUB, periodLB, periodUB, nBins,
			randomSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例11: buildLHSSawToothLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildLHSSawToothLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(SawToothLoadGenerator.STEP_LB) double stepLB,
		@Symbol(SawToothLoadGenerator.STEP_UB) double stepUB,
		@Symbol(SawToothLoadGenerator.PERIOD_LB) double periodLB,
		@Symbol(SawToothLoadGenerator.PERIOD_UB) double periodUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler lhsSampler = new LatinHypercubeInputSampler();

	return new SawToothLoadGenerator(logger, "LHSSawToothLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, stepLB, stepUB, periodLB, periodUB, nBins,
			lhsSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例12: buildRandomSquareLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildRandomSquareLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(SquareLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(SquareLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(SquareLoadGenerator.FREQUENCY_LB) double frequencyLB,
		@Symbol(SquareLoadGenerator.FREQUENCY_UB) double frequencyUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler randomSampler = new RandomInputSampler();

	return new SquareLoadGenerator(logger, "RandomSquareLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, amplitudeLB, amplitudeUB, frequencyLB,
			frequencyUB, nBins, randomSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例13: buildLHSSquareLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildLHSSquareLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(SquareLoadGenerator.AMPLITUDE_LB) double amplitudeLB,
		@Symbol(SquareLoadGenerator.AMPLITUDE_UB) double amplitudeUB,
		@Symbol(SquareLoadGenerator.FREQUENCY_LB) double frequencyLB,
		@Symbol(SquareLoadGenerator.FREQUENCY_UB) double frequencyUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler lhsSampler = new LatinHypercubeInputSampler();

	return new SquareLoadGenerator(logger, "LHSSquareLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, amplitudeLB, amplitudeUB, frequencyLB,
			frequencyUB, nBins, lhsSampler, duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:22,代码来源:LoadGeneratorModule.java

示例14: buildRandomConstantLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildRandomConstantLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,
		@Symbol(ConstantLoadGenerator.INTENSITY_LB) double intensityLB,
		@Symbol(ConstantLoadGenerator.INTENSITY_UB) double intensityUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {
	InputSampler randomSampler = new RandomInputSampler();

	return new ConstantLoadGenerator(logger, "RandomConstantLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, intensityLB, intensityUB, nBins, randomSampler,
			duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:19,代码来源:LoadGeneratorModule.java

示例15: buildLHSConstantLoadGenerator

import org.apache.tapestry5.ioc.annotations.Symbol; //导入依赖的package包/类
public LoadGenerator buildLHSConstantLoadGenerator(
		Logger logger,
		TypeCoercer coercer,
		@Symbol(IterSymbolsNames.TRACEGENERATOR_URL) String traceGeneratorWebService,

		@CLIOption(longName = "jmeter-clients-URL") String jmeterClientsURL,
		@CLIOption(longName = "service-manifest-URL") String manifestURL,
		@Symbol(IterSymbolsNames.N_BINS) int nBins,

		@Symbol(ConstantLoadGenerator.INTENSITY_LB) double intensityLB,
		@Symbol(ConstantLoadGenerator.INTENSITY_UB) double intensityUB,
		@Symbol(LoadGeneratorModule.DURATION_IN_SEC) int duration) {

	InputSampler lhsSampler = new LatinHypercubeInputSampler();

	return new ConstantLoadGenerator(logger, "LHSConstantLoadGenerator",
			coercer, traceGeneratorWebService, jmeterClientsURL,
			manifestURL, intensityLB, intensityUB, nBins, lhsSampler,
			duration);
}
 
开发者ID:alessiogambi,项目名称:iter,代码行数:21,代码来源:LoadGeneratorModule.java


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