start with an upper case on "initial contribution" (#931)
Related to: https://github.com/openhab/openhab-core/pull/916/#discussion_r305082016 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>pull/936/head
parent
b6aae6907f
commit
ef05b4d878
|
@ -27,7 +27,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
* {@link ScriptedCustomModuleHandlerFactory} to allow scripts to define custom types in the RuleManager. These
|
* {@link ScriptedCustomModuleHandlerFactory} to allow scripts to define custom types in the RuleManager. These
|
||||||
* registered types can then be used publicly from any Rule-Editor.
|
* registered types can then be used publicly from any Rule-Editor.
|
||||||
*
|
*
|
||||||
* @author Simon Merschjohann - initial contribution
|
* @author Simon Merschjohann - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true, service = { ScriptedCustomModuleTypeProvider.class, ModuleTypeProvider.class })
|
@Component(immediate = true, service = { ScriptedCustomModuleTypeProvider.class, ModuleTypeProvider.class })
|
||||||
|
|
|
@ -46,7 +46,7 @@ import org.osgi.service.component.annotations.Reference;
|
||||||
* The {@link ScriptFileWatcher} watches the jsr223 directory for files. If a new/modified file is detected, the script
|
* The {@link ScriptFileWatcher} watches the jsr223 directory for files. If a new/modified file is detected, the script
|
||||||
* is read and passed to the {@link ScriptEngineManager}.
|
* is read and passed to the {@link ScriptEngineManager}.
|
||||||
*
|
*
|
||||||
* @author Simon Merschjohann - initial contribution
|
* @author Simon Merschjohann - Initial contribution
|
||||||
* @author Kai Kreuzer - improved logging and removed thread pool
|
* @author Kai Kreuzer - improved logging and removed thread pool
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* This is an abstract class for implementing {@link ScriptEngineFactory}s.
|
* This is an abstract class for implementing {@link ScriptEngineFactory}s.
|
||||||
*
|
*
|
||||||
* @author Scott Rushworth - initial contribution
|
* @author Scott Rushworth - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public abstract class AbstractScriptEngineFactory implements ScriptEngineFactory {
|
public abstract class AbstractScriptEngineFactory implements ScriptEngineFactory {
|
||||||
|
|
|
@ -17,7 +17,7 @@ package org.openhab.core.automation;
|
||||||
*
|
*
|
||||||
* Every method in the implementation should provide annotations which are used to create the ModuleTypes
|
* Every method in the implementation should provide annotations which are used to create the ModuleTypes
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface AnnotatedActions {
|
public interface AnnotatedActions {
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.util.function.Predicate;
|
||||||
/**
|
/**
|
||||||
* This class add support for prefixes for {@link Rule} UIDs and provide default predicates for prefixes and tags.
|
* This class add support for prefixes for {@link Rule} UIDs and provide default predicates for prefixes and tags.
|
||||||
*
|
*
|
||||||
* @author Victor Toni - initial contribution
|
* @author Victor Toni - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RulePredicates {
|
public class RulePredicates {
|
||||||
|
|
|
@ -15,7 +15,7 @@ package org.openhab.core.automation;
|
||||||
/**
|
/**
|
||||||
* This interface is used by {@link RuleRegistry} implementation to be notified of changes related to statuses of rules.
|
* This interface is used by {@link RuleRegistry} implementation to be notified of changes related to statuses of rules.
|
||||||
*
|
*
|
||||||
* @author Yordan Mihaylov - initial contribution
|
* @author Yordan Mihaylov - Initial contribution
|
||||||
*/
|
*/
|
||||||
public interface StatusInfoCallback {
|
public interface StatusInfoCallback {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Input parameter for an action module
|
* Input parameter for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Repeatable(ActionInputs.class)
|
@Repeatable(ActionInputs.class)
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Input parameter wrapper for an action module
|
* Input parameter wrapper for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
@Target(ElementType.PARAMETER)
|
@Target(ElementType.PARAMETER)
|
||||||
|
|
|
@ -22,7 +22,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Output parameter for an action module
|
* Output parameter for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Repeatable(ActionOutputs.class)
|
@Repeatable(ActionOutputs.class)
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Output parameter wrapper for an action module
|
* Output parameter wrapper for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Scope definition for an action module
|
* Scope definition for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.openhab.core.automation.Visibility;
|
||||||
/**
|
/**
|
||||||
* Marker annotation for an action module
|
* Marker annotation for an action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Target(ElementType.METHOD)
|
@Target(ElementType.METHOD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.openhab.core.automation.dto.RuleDTO;
|
||||||
/**
|
/**
|
||||||
* abstract class for rule events
|
* abstract class for rule events
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
* @author Markus Rathgeb - Use the DTO for the Rule representation
|
* @author Markus Rathgeb - Use the DTO for the Rule representation
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.openhab.core.automation.dto.RuleDTO;
|
||||||
/**
|
/**
|
||||||
* An {@link RuleAddedEvent} notifies subscribers that a rule has been added.
|
* An {@link RuleAddedEvent} notifies subscribers that a rule has been added.
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleAddedEvent extends AbstractRuleRegistryEvent {
|
public class RuleAddedEvent extends AbstractRuleRegistryEvent {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.openhab.core.automation.dto.RuleDTO;
|
||||||
/**
|
/**
|
||||||
* An {@link RuleRemovedEvent} notifies subscribers that a rule has been removed.
|
* An {@link RuleRemovedEvent} notifies subscribers that a rule has been removed.
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleRemovedEvent extends AbstractRuleRegistryEvent {
|
public class RuleRemovedEvent extends AbstractRuleRegistryEvent {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.openhab.core.automation.RuleStatusInfo;
|
||||||
/**
|
/**
|
||||||
* An {@link RuleStatusInfoEvent} notifies subscribers that a rule status has been updated.
|
* An {@link RuleStatusInfoEvent} notifies subscribers that a rule status has been updated.
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
* @author Kai Kreuzer - added toString method
|
* @author Kai Kreuzer - added toString method
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.openhab.core.automation.dto.RuleDTO;
|
||||||
/**
|
/**
|
||||||
* An {@link RuleUpdatedEvent} notifies subscribers that a rule has been updated.
|
* An {@link RuleUpdatedEvent} notifies subscribers that a rule has been updated.
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuleUpdatedEvent extends AbstractRuleRegistryEvent {
|
public class RuleUpdatedEvent extends AbstractRuleRegistryEvent {
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* This class is a factory that creates Rule Events.
|
* This class is a factory that creates Rule Events.
|
||||||
*
|
*
|
||||||
* @author Benedikt Niehues - initial contribution
|
* @author Benedikt Niehues - Initial contribution
|
||||||
* @author Markus Rathgeb - Use the DTO for the Rule representation
|
* @author Markus Rathgeb - Use the DTO for the Rule representation
|
||||||
*/
|
*/
|
||||||
@Component(service = EventFactory.class, immediate = true)
|
@Component(service = EventFactory.class, immediate = true)
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* This HandlerFactory creates TimerTriggerHandlers to control items within the
|
* This HandlerFactory creates TimerTriggerHandlers to control items within the
|
||||||
* RuleManager.
|
* RuleManager.
|
||||||
*
|
*
|
||||||
* @author Christoph Knauf - initial contribution
|
* @author Christoph Knauf - Initial contribution
|
||||||
* @author Kai Kreuzer - added new module types
|
* @author Kai Kreuzer - added new module types
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -48,7 +48,7 @@ import org.osgi.service.component.annotations.ReferencePolicy;
|
||||||
* This provider parses annotated {@link AnnotatedActions}s and creates action module types, as well as their handlers
|
* This provider parses annotated {@link AnnotatedActions}s and creates action module types, as well as their handlers
|
||||||
* from them
|
* from them
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = { ModuleTypeProvider.class, ModuleHandlerFactory.class })
|
@Component(service = { ModuleTypeProvider.class, ModuleHandlerFactory.class })
|
||||||
|
|
|
@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Implementation of a service that provides i18n functionality for automation modules
|
* Implementation of a service that provides i18n functionality for automation modules
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -15,7 +15,7 @@ package org.openhab.core.automation.module.provider;
|
||||||
/**
|
/**
|
||||||
* Type to distinguish annotated ActionModules
|
* Type to distinguish annotated ActionModules
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum ActionModuleKind {
|
public enum ActionModuleKind {
|
||||||
|
|
|
@ -46,7 +46,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Helper methods for annotated ActionModuleType provider
|
* Helper methods for annotated ActionModuleType provider
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class AnnotationActionModuleTypeHelper {
|
public class AnnotationActionModuleTypeHelper {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.openhab.core.automation.type.Output;
|
||||||
/**
|
/**
|
||||||
* Wrapper class to collect information about actions modules to be created
|
* Wrapper class to collect information about actions modules to be created
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ModuleInformation {
|
public class ModuleInformation {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.osgi.framework.Bundle;
|
||||||
/**
|
/**
|
||||||
* Interface for a service that offer i18n functionality
|
* Interface for a service that offer i18n functionality
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface ModuleTypeI18nService {
|
public interface ModuleTypeI18nService {
|
||||||
|
|
|
@ -47,7 +47,7 @@ import org.osgi.service.component.annotations.ReferencePolicy;
|
||||||
/**
|
/**
|
||||||
* ModuleTypeProvider that collects actions for {@link ThingHandler}s
|
* ModuleTypeProvider that collects actions for {@link ThingHandler}s
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = { ModuleTypeProvider.class, ModuleHandlerFactory.class })
|
@Component(service = { ModuleTypeProvider.class, ModuleHandlerFactory.class })
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.osgi.service.component.annotations.Reference;
|
||||||
/**
|
/**
|
||||||
* Provides {@link ConfigDescription}s for bindings which are read from XML files.
|
* Provides {@link ConfigDescription}s for bindings which are read from XML files.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = ConfigDescriptionProvider.class, immediate = true, property = { "esh.scope=core.xml.binding" })
|
@Component(service = ConfigDescriptionProvider.class, immediate = true, property = { "esh.scope=core.xml.binding" })
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.jdt.annotation.Nullable;
|
||||||
/**
|
/**
|
||||||
* Can be implemented to point one config description URI to another.
|
* Can be implemented to point one config description URI to another.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -31,7 +31,7 @@ import com.google.gson.JsonPrimitive;
|
||||||
*
|
*
|
||||||
* As opposed to Gson's default behavior, it ensures that all numbers are represented as {@link BigDecimal}s.
|
* As opposed to Gson's default behavior, it ensures that all numbers are represented as {@link BigDecimal}s.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
* @author Ana Dimova - added a deserializer for the configuration, conforming to the automation json format
|
* @author Ana Dimova - added a deserializer for the configuration, conforming to the automation json format
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Map an OSGi configuration map {@code Map<String, Object>} to an individual configuration bean.
|
* Map an OSGi configuration map {@code Map<String, Object>} to an individual configuration bean.
|
||||||
*
|
*
|
||||||
* @author David Graeff - initial contribution
|
* @author David Graeff - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConfigMapper {
|
public class ConfigMapper {
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* {@link ConfigOptionProvider} that provides a list of
|
* {@link ConfigOptionProvider} that provides a list of
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
* @author Erdoan Hadzhiyusein - Added time zone
|
* @author Erdoan Hadzhiyusein - Added time zone
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -58,7 +58,7 @@ import org.osgi.service.component.annotations.ReferencePolicy;
|
||||||
* depending on which main value was chosen. Implementations of course are free to ignore the {@code value} parameter
|
* depending on which main value was chosen. Implementations of course are free to ignore the {@code value} parameter
|
||||||
* and always return the same set of config descriptions.
|
* and always return the same set of config descriptions.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Provides a list of IPv4 addresses of the local machine and shows the user which interface belongs to which IP address
|
* Provides a list of IPv4 addresses of the local machine and shows the user which interface belongs to which IP address
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Common base class for all normalizers, doing the specific type conversion.
|
* Common base class for all normalizers, doing the specific type conversion.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - renamed normalizer interface and added javadoc
|
* @author Thomas Höfer - renamed normalizer interface and added javadoc
|
||||||
*/
|
*/
|
||||||
abstract class AbstractNormalizer implements Normalizer {
|
abstract class AbstractNormalizer implements Normalizer {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||||
* Therefore it considers numbers (0/1 and their {@link String} representations) as well as {@link String}s, containing
|
* Therefore it considers numbers (0/1 and their {@link String} representations) as well as {@link String}s, containing
|
||||||
* apart from the typical "true"/"false" also other values like "yes"/"no", "on"/"off".
|
* apart from the typical "true"/"false" also other values like "yes"/"no", "on"/"off".
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - made class final and minor javadoc changes
|
* @author Thomas Höfer - made class final and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
final class BooleanNormalizer extends AbstractNormalizer {
|
final class BooleanNormalizer extends AbstractNormalizer {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||||
* The normalizer for {@link ConfigDescriptionParameter.Type#DECIMAL}. It converts all number types to BigDecimal,
|
* The normalizer for {@link ConfigDescriptionParameter.Type#DECIMAL}. It converts all number types to BigDecimal,
|
||||||
* having at least one digit after the floating point. Also {@link String}s are converted if possible.
|
* having at least one digit after the floating point. Also {@link String}s are converted if possible.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - made class final and minor javadoc changes
|
* @author Thomas Höfer - made class final and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
final class DecimalNormalizer extends AbstractNormalizer {
|
final class DecimalNormalizer extends AbstractNormalizer {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||||
* The normalizer for {@link ConfigDescriptionParameter.Type#INTEGER}. All different number formats will get converted
|
* The normalizer for {@link ConfigDescriptionParameter.Type#INTEGER}. All different number formats will get converted
|
||||||
* to BigDecimal, not allowing any fractions. Also, {@link String}s will be converted if possible.
|
* to BigDecimal, not allowing any fractions. Also, {@link String}s will be converted if possible.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - made class final and minor javadoc changes
|
* @author Thomas Höfer - made class final and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
final class IntNormalizer extends AbstractNormalizer {
|
final class IntNormalizer extends AbstractNormalizer {
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||||
* The normalizer for configuration parameters allowing multiple values. It converts all collections/arrays to a
|
* The normalizer for configuration parameters allowing multiple values. It converts all collections/arrays to a
|
||||||
* {@link List} and applies the underlying normalizer to each of the values inside that list.
|
* {@link List} and applies the underlying normalizer to each of the values inside that list.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - made class final and minor javadoc changes
|
* @author Thomas Höfer - made class final and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
final class ListNormalizer extends AbstractNormalizer {
|
final class ListNormalizer extends AbstractNormalizer {
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||||
* definition of a config description parameter. As an example a boolean normalizer would convert a given numeric value
|
* definition of a config description parameter. As an example a boolean normalizer would convert a given numeric value
|
||||||
* 0 to false and a given numeric value 1 to true.
|
* 0 to false and a given numeric value 1 to true.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
* @author Thomas Höfer - renamed from INormalizer and minor javadoc changes
|
* @author Thomas Höfer - renamed from INormalizer and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
public interface Normalizer {
|
public interface Normalizer {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter.Type;
|
||||||
* The {@link NormalizerFactory} can be used in order to obtain the {@link Normalizer} for any concrete
|
* The {@link NormalizerFactory} can be used in order to obtain the {@link Normalizer} for any concrete
|
||||||
* {@link ConfigDescriptionParameter.Type}.
|
* {@link ConfigDescriptionParameter.Type}.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - introduced normalizers map and added precondition check as well as some additional javadoc
|
* @author Thomas Höfer - introduced normalizers map and added precondition check as well as some additional javadoc
|
||||||
*/
|
*/
|
||||||
public final class NormalizerFactory {
|
public final class NormalizerFactory {
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||||
* The normalizer for the {@link ConfigDescriptionParameter.Type#TEXT}. It basically ensures that the given value will
|
* The normalizer for the {@link ConfigDescriptionParameter.Type#TEXT}. It basically ensures that the given value will
|
||||||
* turned into its {@link String} representation.
|
* turned into its {@link String} representation.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Thomas Höfer - made class final and minor javadoc changes
|
* @author Thomas Höfer - made class final and minor javadoc changes
|
||||||
*/
|
*/
|
||||||
final class TextNormalizer extends AbstractNormalizer {
|
final class TextNormalizer extends AbstractNormalizer {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.eclipse.smarthome.config.core.ParameterOption;
|
||||||
* Every extension which deals with specific metadata (in its own namespace) is expected to provide an implementation of
|
* Every extension which deals with specific metadata (in its own namespace) is expected to provide an implementation of
|
||||||
* this interface.
|
* this interface.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public interface MetadataConfigDescriptionProvider {
|
public interface MetadataConfigDescriptionProvider {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ConfigUtilTest {
|
public class ConfigUtilTest {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.junit.Test;
|
||||||
/**
|
/**
|
||||||
* Tests for {@link I18nConfigOptionsProvider}
|
* Tests for {@link I18nConfigOptionsProvider}
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class I18nConfigOptionsProviderTest {
|
public class I18nConfigOptionsProviderTest {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.smarthome.config.discovery.usbserial.UsbSerialDeviceInformati
|
||||||
* Permits to perform repeated scans for USB devices with associated serial port. Keeps the last scan result as internal
|
* Permits to perform repeated scans for USB devices with associated serial port. Keeps the last scan result as internal
|
||||||
* state, for detecting which devices were added, as well as which devices were removed.
|
* state, for detecting which devices were added, as well as which devices were removed.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public class DeltaUsbSerialScanner {
|
public class DeltaUsbSerialScanner {
|
||||||
|
|
|
@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* A {@link UsbSerialDiscovery} that implements background discovery by doing repetitive scans using a
|
* A {@link UsbSerialDiscovery} that implements background discovery by doing repetitive scans using a
|
||||||
* {@link UsbSerialScanner}, pausing a configurable amount of time between subsequent scans.
|
* {@link UsbSerialScanner}, pausing a configurable amount of time between subsequent scans.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
@Component(configurationPid = "discovery.usbserial.linuxsysfs.pollingscanner")
|
@Component(configurationPid = "discovery.usbserial.linuxsysfs.pollingscanner")
|
||||||
|
|
|
@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* is collected from the sysfs and returned together with the name of the serial port in form of a
|
* is collected from the sysfs and returned together with the name of the serial port in form of a
|
||||||
* {@link UsbSerialDeviceInformation}.
|
* {@link UsbSerialDeviceInformation}.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@Component(configurationPid = "discovery.usbserial.linuxsysfs.usbserialscanner")
|
@Component(configurationPid = "discovery.usbserial.linuxsysfs.usbserialscanner")
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.smarthome.config.discovery.usbserial.UsbSerialDeviceInformati
|
||||||
/**
|
/**
|
||||||
* Implementations of this interface scan for serial ports provided by USB devices.
|
* Implementations of this interface scan for serial ports provided by USB devices.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public interface UsbSerialScanner {
|
public interface UsbSerialScanner {
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.eclipse.jdt.annotation.Nullable;
|
||||||
* the other hand, the name of the serial port (for Linux, this would be, e.g., '/dev/ttyUSB0', for Windows, e.g.,
|
* the other hand, the name of the serial port (for Linux, this would be, e.g., '/dev/ttyUSB0', for Windows, e.g.,
|
||||||
* 'COM4').
|
* 'COM4').
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public class UsbSerialDeviceInformation {
|
public class UsbSerialDeviceInformation {
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.eclipse.smarthome.config.discovery.usbserial.internal.UsbSerialDiscov
|
||||||
* Interface for implementations for discovering serial ports provided by a USB device. An implementation of this
|
* Interface for implementations for discovering serial ports provided by a USB device. An implementation of this
|
||||||
* interface is required by the {@link UsbSerialDiscoveryService}.
|
* interface is required by the {@link UsbSerialDiscoveryService}.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public interface UsbSerialDiscovery {
|
public interface UsbSerialDiscovery {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
/**
|
/**
|
||||||
* Listener interface for {@link UsbSerialDiscovery}s.
|
* Listener interface for {@link UsbSerialDiscovery}s.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public interface UsbSerialDiscoveryListener {
|
public interface UsbSerialDiscoveryListener {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.eclipse.smarthome.core.thing.ThingUID;
|
||||||
* {@link UsbSerialDiscoveryService} and can thus contribute {@link DiscoveryResult}s from
|
* {@link UsbSerialDiscoveryService} and can thus contribute {@link DiscoveryResult}s from
|
||||||
* scans for USB devices with an associated serial port.
|
* scans for USB devices with an associated serial port.
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public interface UsbSerialDiscoveryParticipant {
|
public interface UsbSerialDiscoveryParticipant {
|
||||||
|
|
|
@ -58,7 +58,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* This discovery service requires a component implementing the interface {@link UsbSerialDiscovery}, which performs the
|
* This discovery service requires a component implementing the interface {@link UsbSerialDiscovery}, which performs the
|
||||||
* actual serial port and USB device discovery (as this discovery might differ depending on the operating system).
|
* actual serial port and USB device discovery (as this discovery might differ depending on the operating system).
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
@Component(immediate = true, service = { DiscoveryService.class,
|
@Component(immediate = true, service = { DiscoveryService.class,
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.eclipse.smarthome.core.thing.ThingUID;
|
||||||
* @deprecated The use of this callback is deprecated. The {@link Inbox} is able to deal with updates.
|
* @deprecated The use of this callback is deprecated. The {@link Inbox} is able to deal with updates.
|
||||||
* Incremental discovery should be handled internally by each {@link DiscoveryService}.
|
* Incremental discovery should be handled internally by each {@link DiscoveryService}.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Henning Treu - deprecation.
|
* @author Henning Treu - deprecation.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
* future versions. Please see the deprecation documentation on {@link DiscoveryServiceCallback} for more
|
* future versions. Please see the deprecation documentation on {@link DiscoveryServiceCallback} for more
|
||||||
* details.
|
* details.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
* @author Henning Treu - deprecation.
|
* @author Henning Treu - deprecation.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
* Please note that this interface is intended to be implemented by solutions integrating openHAB. This
|
* Please note that this interface is intended to be implemented by solutions integrating openHAB. This
|
||||||
* interface is <em>not</em> intended to be implemented by openHAB addons (like, e.g., bindings).
|
* interface is <em>not</em> intended to be implemented by openHAB addons (like, e.g., bindings).
|
||||||
*
|
*
|
||||||
* @author Henning Sudbrock - initial contribution
|
* @author Henning Sudbrock - Initial contribution
|
||||||
*/
|
*/
|
||||||
public interface InboxAutoApprovePredicate extends Predicate<DiscoveryResult> {
|
public interface InboxAutoApprovePredicate extends Predicate<DiscoveryResult> {
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.osgi.framework.Bundle;
|
||||||
/**
|
/**
|
||||||
* Common base class for XML based providers.
|
* Common base class for XML based providers.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution, factored out of subclasses
|
* @author Simon Kaufmann - Initial contribution, factored out of subclasses
|
||||||
*
|
*
|
||||||
* @param <T_ID> the key type, e.g. ThingTypeUID, ChannelUID, URI,...
|
* @param <T_ID> the key type, e.g. ThingTypeUID, ChannelUID, URI,...
|
||||||
* @param <T_OBJECT> the object type, e.g. ThingType, ChannelType, ConfigDescription,...
|
* @param <T_OBJECT> the object type, e.g. ThingType, ChannelType, ConfigDescription,...
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.osgi.service.component.annotations.Reference;
|
||||||
/**
|
/**
|
||||||
* Provides {@link ConfigDescription}s for configurations which are read from XML files.
|
* Provides {@link ConfigDescription}s for configurations which are read from XML files.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = ConfigDescriptionProvider.class, immediate = true, property = { "esh.scope=core.xml.config" })
|
@Component(service = ConfigDescriptionProvider.class, immediate = true, property = { "esh.scope=core.xml.config" })
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* A handler which forces basic auth when authentication fails.
|
* A handler which forces basic auth when authentication fails.
|
||||||
*
|
*
|
||||||
* @author Łukasz Dywicki - initial contribution and API.
|
* @author Łukasz Dywicki - Initial contribution and API.
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class BasicChallengeHandler implements Handler {
|
public class BasicChallengeHandler implements Handler {
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Extract user name and password from incoming request.
|
* Extract user name and password from incoming request.
|
||||||
*
|
*
|
||||||
* @author Łukasz Dywicki - initial contribution.
|
* @author Łukasz Dywicki - Initial contribution.
|
||||||
*/
|
*/
|
||||||
@Component(property = { "context=javax.servlet.http.HttpServletRequest" })
|
@Component(property = { "context=javax.servlet.http.HttpServletRequest" })
|
||||||
public class BasicCredentialsExtractor implements CredentialsExtractor<HttpServletRequest> {
|
public class BasicCredentialsExtractor implements CredentialsExtractor<HttpServletRequest> {
|
||||||
|
|
|
@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Request handler which allows to verify authentication.
|
* Request handler which allows to verify authentication.
|
||||||
*
|
*
|
||||||
* @author Łukasz Dywicki - initial contribution.
|
* @author Łukasz Dywicki - Initial contribution.
|
||||||
*/
|
*/
|
||||||
@Component(configurationPid = "org.eclipse.smarthome.auth")
|
@Component(configurationPid = "org.eclipse.smarthome.auth")
|
||||||
public class AuthenticationHandler implements Handler {
|
public class AuthenticationHandler implements Handler {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Handler located after authentication which redirect client to page from which he started authentication process.
|
* Handler located after authentication which redirect client to page from which he started authentication process.
|
||||||
*
|
*
|
||||||
* @author Łukasz Dywicki - initial contribution.
|
* @author Łukasz Dywicki - Initial contribution.
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class RedirectHandler implements Handler {
|
public class RedirectHandler implements Handler {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.osgi.service.http.HttpService;
|
||||||
* Create {@link HttpContext} instances when registering servlets, resources or filters using the
|
* Create {@link HttpContext} instances when registering servlets, resources or filters using the
|
||||||
* {@link HttpService#registerServlet} and corresponding methods.
|
* {@link HttpService#registerServlet} and corresponding methods.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution and API
|
* @author Henning Treu - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface HttpContextFactoryService {
|
public interface HttpContextFactoryService {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.osgi.service.http.HttpContext;
|
||||||
/**
|
/**
|
||||||
* Http context which does nothing but lets the delegate do its job.
|
* Http context which does nothing but lets the delegate do its job.
|
||||||
*
|
*
|
||||||
* @author Łukasz Dywicki - initial contribution.
|
* @author Łukasz Dywicki - Initial contribution.
|
||||||
*/
|
*/
|
||||||
class DelegatingHttpContext implements HttpContext {
|
class DelegatingHttpContext implements HttpContext {
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.osgi.service.http.HttpService;
|
||||||
* {@link HttpService#registerServlet} and corresponding methods.
|
* {@link HttpService#registerServlet} and corresponding methods.
|
||||||
* The resulting {@link HttpContext} complies with the OSGi specification when it comes to resource resolving.
|
* The resulting {@link HttpContext} complies with the OSGi specification when it comes to resource resolving.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution and API
|
* @author Henning Treu - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = HttpContextFactoryService.class)
|
@Component(service = HttpContextFactoryService.class)
|
||||||
|
|
|
@ -37,7 +37,7 @@ import com.google.gson.GsonBuilder;
|
||||||
/**
|
/**
|
||||||
* JSON reader/writer for Jersey using GSON.
|
* JSON reader/writer for Jersey using GSON.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
* @param <T>
|
* @param <T>
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.osgi.service.component.annotations.Reference;
|
||||||
/**
|
/**
|
||||||
* Matches available metadata namespaces against the given namespace list or regular expression.
|
* Matches available metadata namespaces against the given namespace list or regular expression.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution
|
* @author Henning Treu - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(service = MetadataSelectorMatcher.class)
|
@Component(service = MetadataSelectorMatcher.class)
|
||||||
|
|
|
@ -58,7 +58,7 @@ import io.swagger.annotations.ApiResponses;
|
||||||
/**
|
/**
|
||||||
* REST resource to obtain profile-types
|
* REST resource to obtain profile-types
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Path(ProfileTypeResource.PATH_PROFILE_TYPES)
|
@Path(ProfileTypeResource.PATH_PROFILE_TYPES)
|
||||||
|
|
|
@ -25,7 +25,7 @@ import com.eclipsesource.jaxrs.publisher.ResourceFilter;
|
||||||
* It registers a {@link ResourceFilter} in order to prevent the JAX-RS implementation to
|
* It registers a {@link ResourceFilter} in order to prevent the JAX-RS implementation to
|
||||||
* enforce starting all services once they are registered.
|
* enforce starting all services once they are registered.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Activator implements BundleActivator {
|
public class Activator implements BundleActivator {
|
||||||
|
|
|
@ -52,7 +52,7 @@ import com.eclipsesource.jaxrs.publisher.ResourceFilter;
|
||||||
*
|
*
|
||||||
* If this file is present, no other services will be scanned and hence won't be available.
|
* If this file is present, no other services will be scanned and hence won't be available.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ResourceFilterImpl implements ResourceFilter {
|
public class ResourceFilterImpl implements ResourceFilter {
|
||||||
|
|
|
@ -56,7 +56,7 @@ import org.mockito.Mock;
|
||||||
/**
|
/**
|
||||||
* Test aspects of the {@link SitemapResource}.
|
* Test aspects of the {@link SitemapResource}.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution
|
* @author Henning Treu - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SitemapResourceTest extends JavaTest {
|
public class SitemapResourceTest extends JavaTest {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.util.stream.Stream;
|
||||||
/**
|
/**
|
||||||
* Utilities for mapping/transforming DTOs.
|
* Utilities for mapping/transforming DTOs.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface DTOMapper {
|
public interface DTOMapper {
|
||||||
|
|
|
@ -38,7 +38,7 @@ import com.google.gson.stream.JsonWriter;
|
||||||
/**
|
/**
|
||||||
* Static helper methods to build up JSON-like Response objects and error handling.
|
* Static helper methods to build up JSON-like Response objects and error handling.
|
||||||
*
|
*
|
||||||
* @author Joerg Plewe - initial contribution
|
* @author Joerg Plewe - Initial contribution
|
||||||
* @author Henning Treu - Provide streaming capabilities
|
* @author Henning Treu - Provide streaming capabilities
|
||||||
*/
|
*/
|
||||||
public class JSONResponse {
|
public class JSONResponse {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.eclipse.jdt.annotation.Nullable;
|
||||||
/**
|
/**
|
||||||
* Provides helper method for working with locales.
|
* Provides helper method for working with locales.
|
||||||
*
|
*
|
||||||
* @author Lyubomir Papazov - initial contribution
|
* @author Lyubomir Papazov - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -29,7 +29,7 @@ import com.google.gson.GsonBuilder;
|
||||||
* from the top level elements of the stream. For best performance a flattened stream should be provided. Otherwise a
|
* from the top level elements of the stream. For best performance a flattened stream should be provided. Otherwise a
|
||||||
* nested collections JSON representation will be fully transformed into memory.
|
* nested collections JSON representation will be fully transformed into memory.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution
|
* @author Henning Treu - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Stream2JSONInputStream extends InputStream {
|
public class Stream2JSONInputStream extends InputStream {
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* {@link DTOMapper} implementation.
|
* {@link DTOMapper} implementation.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -22,7 +22,7 @@ import com.google.inject.Inject;
|
||||||
/**
|
/**
|
||||||
* Registers {@link IValueConverter}s for the items language.
|
* Registers {@link IValueConverter}s for the items language.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ItemValueConverters extends DefaultTerminalConverters {
|
public class ItemValueConverters extends DefaultTerminalConverters {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* It takes into account the fact that although language server and client both operate on the same set of files, their
|
* It takes into account the fact that although language server and client both operate on the same set of files, their
|
||||||
* file system location might be different due to remote access via SMB, SSH and the like.
|
* file system location might be different due to remote access via SMB, SSH and the like.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MappingUriExtensions extends UriExtensions {
|
public class MappingUriExtensions extends UriExtensions {
|
||||||
|
|
|
@ -42,7 +42,7 @@ import com.google.inject.Injector;
|
||||||
/**
|
/**
|
||||||
* A service component exposing a Language Server via sockets.
|
* A service component exposing a Language Server via sockets.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true, service = ModelServer.class, configurationPid = ModelServer.CONFIG_PID, property = {
|
@Component(immediate = true, service = ModelServer.class, configurationPid = ModelServer.CONFIG_PID, property = {
|
||||||
|
|
|
@ -41,7 +41,7 @@ import com.google.inject.Singleton;
|
||||||
*
|
*
|
||||||
* It just piggy-backs the static Resgitry instance that the runtime bundles are using anyway.
|
* It just piggy-backs the static Resgitry instance that the runtime bundles are using anyway.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
|
|
|
@ -35,7 +35,7 @@ import com.google.inject.AbstractModule;
|
||||||
/**
|
/**
|
||||||
* This class configures the injector for the Language Server.
|
* This class configures the injector for the Language Server.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RuntimeServerModule extends AbstractModule {
|
public class RuntimeServerModule extends AbstractModule {
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.eclipse.xtext.xbase.typesystem.internal.OptimizingFeatureScopeTracker
|
||||||
*
|
*
|
||||||
* ...with a workaround for https://github.com/eclipse/xtext-extras/issues/144
|
* ...with a workaround for https://github.com/eclipse/xtext-extras/issues/144
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class OptimizingFeatureScopeTrackerProvider2 extends OptimizingFeatureScopeTrackerProvider {
|
public class OptimizingFeatureScopeTrackerProvider2 extends OptimizingFeatureScopeTrackerProvider {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import com.google.inject.Module;
|
||||||
/**
|
/**
|
||||||
* Guice module that binds openHAB services
|
* Guice module that binds openHAB services
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API.
|
* @author Simon Kaufmann - Initial contribution and API.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ServiceModule implements Module {
|
public class ServiceModule implements Module {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.xtext.parser.IEncodingProvider;
|
||||||
* It makes sure that synthetic resources are interpreted as UTF-8 because they will be handed in as strings and turned
|
* It makes sure that synthetic resources are interpreted as UTF-8 because they will be handed in as strings and turned
|
||||||
* into UTF-8 encoded streams by the script engine.
|
* into UTF-8 encoded streams by the script engine.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*/
|
*/
|
||||||
public class ScriptEncodingProvider implements IEncodingProvider {
|
public class ScriptEncodingProvider implements IEncodingProvider {
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference;
|
||||||
/**
|
/**
|
||||||
* Calculates the type information used by Xbase to select the correct method during script execution.
|
* Calculates the type information used by Xbase to select the correct method during script execution.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution
|
* @author Henning Treu - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("restriction")
|
@SuppressWarnings("restriction")
|
||||||
|
|
|
@ -37,7 +37,7 @@ import org.osgi.framework.Bundle;
|
||||||
/**
|
/**
|
||||||
* Test the GenericThingProvider for different {@link ThingHandlerFactory}s for Bridge and Thing.
|
* Test the GenericThingProvider for different {@link ThingHandlerFactory}s for Bridge and Thing.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution
|
* @author Henning Treu - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class GenericThingProviderMultipleBundlesTest {
|
public class GenericThingProviderMultipleBundlesTest {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import com.google.gson.annotations.SerializedName;
|
||||||
/**
|
/**
|
||||||
* Internal data structure of the {@link JsonStorage}
|
* Internal data structure of the {@link JsonStorage}
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class StorageEntry {
|
public class StorageEntry {
|
||||||
|
|
|
@ -30,7 +30,7 @@ import com.google.gson.JsonParseException;
|
||||||
*
|
*
|
||||||
* The contained entities remain json objects and won't me deserialized to their corresponding types at this point.
|
* The contained entities remain json objects and won't me deserialized to their corresponding types at this point.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class StorageEntryMapDeserializer implements JsonDeserializer<Map<String, StorageEntry>> {
|
public class StorageEntryMapDeserializer implements JsonDeserializer<Map<String, StorageEntry>> {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* ThingHandler which provides annotated actions that will become Action modules for the automation engine
|
* ThingHandler which provides annotated actions that will become Action modules for the automation engine
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* ThingHandler that randomly sends numbers and strings to channels based on a configured interval
|
* ThingHandler that randomly sends numbers and strings to channels based on a configured interval
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.eclipse.smarthome.core.types.Command;
|
||||||
/**
|
/**
|
||||||
* ThingHandler for a thing that goes online after 15 seconds
|
* ThingHandler for a thing that goes online after 15 seconds
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Marker for the multiple action module
|
* Marker for the multiple action module
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true, service = MagicMultiActionMarker.class, property = {
|
@Component(immediate = true, service = MagicMultiActionMarker.class, property = {
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
|
||||||
* The {@link MagicMultiActionMarker} holds the configuration URI and shows the system that THIS service can be
|
* The {@link MagicMultiActionMarker} holds the configuration URI and shows the system that THIS service can be
|
||||||
* instantiated multiple times
|
* instantiated multiple times
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true, configurationPolicy = ConfigurationPolicy.REQUIRE, configurationPid = "org.eclipse.smarthome.MagicMultiAction")
|
@Component(immediate = true, configurationPolicy = ConfigurationPolicy.REQUIRE, configurationPid = "org.eclipse.smarthome.MagicMultiAction")
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* {@link AnnotatedActions} for one action module with a configuration
|
* {@link AnnotatedActions} for one action module with a configuration
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(configurationPid = "org.eclipse.smarthome.automation.action.magicSingleActionService", property = {
|
@Component(configurationPid = "org.eclipse.smarthome.automation.action.magicSingleActionService", property = {
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Some automation actions to be used with a {@link MagicActionModuleThingHandler}
|
* Some automation actions to be used with a {@link MagicActionModuleThingHandler}
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ActionScope(name = "magic")
|
@ActionScope(name = "magic")
|
||||||
|
|
|
@ -32,7 +32,7 @@ import org.osgi.service.http.NamespaceException;
|
||||||
/**
|
/**
|
||||||
* Registers itself under "/" and provides links to other web UIs
|
* Registers itself under "/" and provides links to other web UIs
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true)
|
@Component(immediate = true)
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Describes the metadata for the "magic" namespace.
|
* Describes the metadata for the "magic" namespace.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.osgi.service.component.annotations.Component;
|
||||||
/**
|
/**
|
||||||
* Describes the metadata for the "metamagic" namespace.
|
* Describes the metadata for the "metamagic" namespace.
|
||||||
*
|
*
|
||||||
* @author Henning Treu - initial contribution and API
|
* @author Henning Treu - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Example service which makes use of the metadata of the "magic" namespace.
|
* Example service which makes use of the metadata of the "magic" namespace.
|
||||||
*
|
*
|
||||||
* @author Simon Kaufmann - initial contribution and API
|
* @author Simon Kaufmann - Initial contribution and API
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
|
||||||
/**
|
/**
|
||||||
* Testing service for multi-context configurations.
|
* Testing service for multi-context configurations.
|
||||||
*
|
*
|
||||||
* @author Stefan Triller - initial contribution
|
* @author Stefan Triller - Initial contribution
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Component(immediate = true, configurationPolicy = ConfigurationPolicy.REQUIRE, service = MagicMultiInstanceService.class, configurationPid = "org.eclipse.smarthome.magicMultiInstance")
|
@Component(immediate = true, configurationPolicy = ConfigurationPolicy.REQUIRE, service = MagicMultiInstanceService.class, configurationPid = "org.eclipse.smarthome.magicMultiInstance")
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue