/** * This method provides the default properties, as supplied by the annotation. * * @return The default configuration. */ private final Configuration getDefaultConfiguration() { final Configuration defaultConfiguration = new Configuration(); // Get the (potential) annotation of our class final kieker.analysis.annotation.AnalysisController annotation = this.getClass().getAnnotation(kieker.analysis.annotation.AnalysisController.class); if (null != annotation) { // Run through the available properties and put them into our configuration for (final Property property : annotation.configuration()) { defaultConfiguration.setProperty(property.name(), property.defaultValue()); } } return defaultConfiguration; }
@kieker.analysis.annotation.AnalysisController( configuration = { @Property(name = IProjectContext.CONFIG_PROPERTY_NAME_RECORDS_TIME_UNIT, defaultValue = "NANOSECONDS"),
/** * This method provides the default properties, as supplied by the annotation. * * @return The default configuration. */ private final Configuration getDefaultConfiguration() { final Configuration defaultConfiguration = new Configuration(); // Get the (potential) annotation of our class final kieker.analysis.annotation.AnalysisController annotation = this.getClass().getAnnotation(kieker.analysis.annotation.AnalysisController.class); if (null != annotation) { // Run through the available properties and put them into our configuration for (final Property property : annotation.configuration()) { defaultConfiguration.setProperty(property.name(), property.defaultValue()); } } return defaultConfiguration; }
@kieker.analysis.annotation.AnalysisController(configuration = { @Property(name = IProjectContext.CONFIG_PROPERTY_NAME_RECORDS_TIME_UNIT, defaultValue = "NANOSECONDS"), @Property(name = IProjectContext.CONFIG_PROPERTY_NAME_PROJECT_NAME, defaultValue = "AnalysisProject")