public class UnitRemoteFactoryImpl extends Object implements UnitRemoteFactory
| Modifier and Type | Method and Description |
|---|---|
AbstractUnitRemote |
createAndInitUnitRemote(rst.domotic.unit.UnitConfigType.UnitConfig config)
Deprecated.
|
AbstractUnitRemote |
createUnitRemote(rst.domotic.unit.UnitConfigType.UnitConfig config)
Deprecated.
use newInstance instead!
|
static UnitRemoteFactory |
getInstance()
Method returns a new singelton instance of the unit factory.
|
static Class<? extends AbstractUnitRemote> |
loadUnitRemoteClass(rst.domotic.unit.UnitConfigType.UnitConfig config)
Method resolves the unit remote class of the given unit config.
|
static Class<? extends AbstractUnitRemote> |
loadUnitRemoteClass(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
Method resolves the unit remote class of the given unit type.
|
<R extends AbstractUnitRemote> |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
Class<R> unitRemoteClass)
Creates and initializes an unit remote out of the given unit scope and class type.
|
UnitRemote |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
long timeout,
TimeUnit timeUnit)
Creates and initializes an unit remote out of the given unit scope.
|
UnitRemote |
newInitializedInstance(rst.rsb.ScopeType.Scope scope,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type)
Creates and initializes an unit remote out of the given unit scope and type declaration.
|
UnitRemote |
newInitializedInstance(String unitId,
long timeout,
TimeUnit timeUnit)
Creates and initializes an unit remote out of the given unit id.
|
UnitRemote |
newInitializedInstance(rst.domotic.unit.UnitConfigType.UnitConfig config)
Creates and initializes an unit remote out of the given unit configuration.
|
<R extends AbstractUnitRemote> |
newInstance(Class<R> unitRemoteClass)
Creates an unit remote out of the given unit class.
|
UnitRemote |
newInstance(rst.rsb.ScopeType.Scope scope,
long timeout,
TimeUnit timeUnit)
Creates an unit remote out of the given unit scope.
|
UnitRemote |
newInstance(String unitId,
long timeout,
TimeUnit timeUnit)
Creates an unit remote out of the given unit id.
|
UnitRemote |
newInstance(rst.domotic.unit.UnitConfigType.UnitConfig config)
Creates an unit remote out of the given unit configuration.
|
UnitRemote |
newInstance(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type)
Creates an unit remote out of the given unit configuration.
|
public static UnitRemoteFactory getInstance()
@Deprecated public AbstractUnitRemote createUnitRemote(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.CouldNotPerformException
createUnitRemote in interface UnitRemoteFactoryconfig - the unit configuration which defines the remote type.org.openbase.jul.exception.CouldNotPerformException@Deprecated public AbstractUnitRemote createAndInitUnitRemote(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.CouldNotPerformException
createAndInitUnitRemote in interface UnitRemoteFactoryconfig - the unit configuration which defines the remote type and is
used for the remote initialization.org.openbase.jul.exception.CouldNotPerformExceptionorg.openbase.jul.exception.InitializationException - * @deprecated use newInitializedInstance instead!public static Class<? extends AbstractUnitRemote> loadUnitRemoteClass(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 AbstractUnitRemote> loadUnitRemoteClass(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 UnitRemote newInstance(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitRemoteFactorynewInstance in interface org.openbase.jul.pattern.Factory<UnitRemote,rst.domotic.unit.UnitConfigType.UnitConfig>config - the unit configuration which defines the remote type.org.openbase.jul.exception.InstantiationExceptionpublic <R extends AbstractUnitRemote> R newInstance(Class<R> unitRemoteClass) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitRemoteFactoryR - the unit remote class type.unitRemoteClass - the unit class which defines the remote type.org.openbase.jul.exception.InstantiationExceptionpublic UnitRemote newInstance(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType type) throws org.openbase.jul.exception.InstantiationException
newInstance in interface UnitRemoteFactorytype - 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 UnitRemote newInstance(String unitId, long timeout, TimeUnit timeUnit) throws org.openbase.jul.exception.InstantiationException, org.openbase.jul.exception.CouldNotPerformException, InterruptedException
newInstance in interface UnitRemoteFactoryunitId - 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 UnitRemote 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 UnitRemoteFactoryscope - 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 UnitRemote newInitializedInstance(rst.domotic.unit.UnitConfigType.UnitConfig config) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, InterruptedException
newInitializedInstance in interface UnitRemoteFactoryconfig - the unit configuration which defines the remote type and is used for the remote initialization.org.openbase.jul.exception.InitializationExceptionorg.openbase.jul.exception.InstantiationExceptionInterruptedExceptionpublic UnitRemote 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 UnitRemoteFactoryscope - 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 AbstractUnitRemote> R newInitializedInstance(rst.rsb.ScopeType.Scope scope, Class<R> unitRemoteClass) throws org.openbase.jul.exception.InitializationException, org.openbase.jul.exception.InstantiationException, InterruptedException
newInitializedInstance in interface UnitRemoteFactoryR - the unit remote class type.scope - the unit scope which is used for the remote initialization.unitRemoteClass - 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 UnitRemote 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 UnitRemoteFactoryscope - 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 UnitRemote 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 UnitRemoteFactoryunitId - 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 © 2014–2017 openbase.org. All rights reserved.