public class UnitPaneFactoryImpl extends Object implements UnitPaneFactory
| Modifier and Type | Method and Description |
|---|---|
static UnitPaneFactory |
getInstance()
Method returns a new singelton instance of the unit factory.
|
static Class<? extends AbstractUnitPane> |
loadUnitPaneClass(rst.domotic.unit.UnitConfigType.UnitConfig config)
Method resolves the unit pane class of the given unit config.
|
static Class<? extends AbstractUnitPane> |
loadUnitPaneClass(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
Method resolves the unit pane class of the given unit type.
|
<R extends AbstractUnitPane> |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
Class<R> unitPaneClass)
Creates and initializes an unit pane out of the given unit scope and class type.
|
AbstractUnitPane |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
long timeout,
TimeUnit timeUnit)
Creates and initializes an unit pane out of the given unit scope.
|
AbstractUnitPane |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type)
Creates and initializes an unit pane out of the given unit scope and type declaration.
|
AbstractUnitPane |
newInitializedInstance(String unitId,
long timeout,
TimeUnit timeUnit)
Creates and initializes an unit pane out of the given unit id.
|
AbstractUnitPane |
newInitializedInstance(rst.domotic.unit.UnitConfigType.UnitConfig config)
Creates and initializes an unit pane out of the given unit configuration.
|
<R extends AbstractUnitPane> |
newInstance(Class<R> unitPaneClass)
Creates an unit pane out of the given unit class.
|
AbstractUnitPane |
newInstance(rst.rsb.ScopeType.Scope scope,
long timeout,
TimeUnit timeUnit)
Creates an unit pane out of the given unit scope.
|
AbstractUnitPane |
newInstance(String unitId,
long timeout,
TimeUnit timeUnit)
Creates an unit pane out of the given unit id.
|
AbstractUnitPane |
newInstance(rst.domotic.unit.UnitConfigType.UnitConfig config)
Creates an unit pane out of the given unit configuration.
|
AbstractUnitPane |
newInstance(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type)
Creates an unit pane out of the given unit configuration.
|
public static UnitPaneFactory getInstance()
public static Class<? extends AbstractUnitPane> loadUnitPaneClass(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.CouldNotPerformException
config - the unit config to detect the unit class.org.openbase.jul.exception.CouldNotPerformException - is thrown if something went wrong during class loading.public static Class<? extends AbstractUnitPane> loadUnitPaneClass(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) throws org.openbase.jul.exception.CouldNotPerformException
unitType - the unit type to detect the unit class.org.openbase.jul.exception.CouldNotPerformException - is thrown if something went wrong during class loading.public AbstractUnitPane newInstance(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitPaneFactorynewInstance in interface org.openbase.jul.pattern.Factory<AbstractUnitPane,rst.domotic.unit.UnitConfigType.UnitConfig>config - the unit configuration which defines the remote type.org.openbase.jul.exception.InstantiationExceptionpublic <R extends AbstractUnitPane> R newInstance(Class<R> unitPaneClass) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitPaneFactoryR - the unit pane class type.unitPaneClass - the unit class which defines the remote type.org.openbase.jul.exception.InstantiationExceptionpublic AbstractUnitPane newInstance(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitPaneFactorytype - the unit type which is used for the remote initialization.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.public AbstractUnitPane newInstance(String unitId, long timeout, TimeUnit timeUnit) throws org.openbase.jul.exception.InstantiationException, org.openbase.jul.exception.CouldNotPerformException, InterruptedException
newInstance in interface UnitPaneFactoryunitId - the unit id which defines the remote type.timeout - the timeout for the unit registry lookup.timeUnit - the time unit of the timeout.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.InterruptedException - is thrown if the thread was externally interrupted.org.openbase.jul.exception.CouldNotPerformExceptionpublic AbstractUnitPane newInstance(rst.rsb.ScopeType.Scope scope, long timeout, TimeUnit timeUnit) throws org.openbase.jul.exception.InstantiationException, org.openbase.jul.exception.CouldNotPerformException, InterruptedException
newInstance in interface UnitPaneFactoryscope - the unit scope which defines the remote type..timeout - the timeout for the unit registry lookup.timeUnit - the time unit of the timeout.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.InterruptedException - is thrown if the thread was externally interrupted.org.openbase.jul.exception.CouldNotPerformExceptionpublic AbstractUnitPane newInitializedInstance(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, InterruptedException
newInitializedInstance in interface UnitPaneFactoryconfig - the unit configuration which defines the remote type and is used for the remote initialization.org.openbase.jul.exception.InitializationExceptionorg.openbase.jul.exception.InstantiationExceptionInterruptedExceptionpublic AbstractUnitPane newInitializedInstance(rst.rsb.ScopeType.Scope scope, rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, InterruptedException
newInitializedInstance in interface UnitPaneFactoryscope - the unit scope which is used for the remote initialization.type - the unit to instantiate.org.openbase.jul.exception.InitializationException - is thrown if the unit could not be initialized with the given information.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.InterruptedException - is thrown if the thread was externally interrupted.public <R extends AbstractUnitPane> R newInitializedInstance(rst.rsb.ScopeType.Scope scope, Class<R> unitPaneClass) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, InterruptedException
newInitializedInstance in interface UnitPaneFactoryR - the unit pane class type.scope - the unit scope which is used for the remote initialization.unitPaneClass - to identify the unit type.org.openbase.jul.exception.InitializationException - is thrown if the unit could not be initialized with the given information.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.InterruptedException - is thrown if the thread was externally interrupted. is thrown if the thread was externally interrupted.public AbstractUnitPane newInitializedInstance(rst.rsb.ScopeType.Scope scope, long timeout, TimeUnit timeUnit) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, org.openbase.jul.exception.CouldNotPerformException, InterruptedException
newInitializedInstance in interface UnitPaneFactoryscope - the unit scope which is used for the remote initialization.timeout - the timeout for the unit registry lookup.timeUnit - the time unit of the timeout.org.openbase.jul.exception.InitializationException - is thrown if the unit could not be initialized with the given information.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.org.openbase.jul.exception.CouldNotPerformException - is thrown if any other error occurs during buildup.InterruptedException - is thrown if the thread was externally interrupted. is thrown if the thread was externally interrupted.public AbstractUnitPane newInitializedInstance(String unitId, long timeout, TimeUnit timeUnit) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, org.openbase.jul.exception.CouldNotPerformException, InterruptedException
newInitializedInstance in interface UnitPaneFactoryunitId - the unit id which is used for the remote initialization.timeout - the timeout for the unit registry lookup.timeUnit - the time unit of the timeout.org.openbase.jul.exception.InitializationException - is thrown if the unit could not be initialized with the given information.org.openbase.jul.exception.InstantiationException - is thrown if the unit could not be instantiated with the given information.org.openbase.jul.exception.CouldNotPerformException - is thrown if any other error occurs during buildup.InterruptedException - is thrown if the thread was externally interrupted.Copyright © 2015–2018 openbase.org. All rights reserved.