com.kuka.roboticsAPI.applicationModel.tasks
Annotation Type UseRoboticsAPIContext


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface UseRoboticsAPIContext

When a task class is annotated with this annotation, the task and it's injected dependencies will be able to use the following types using dependency injection (using @Inject, @Named etc.):

Notes:
*: If there's more than one device or controller configured in the station, you must specify the name with a @Named. If devices names are not unique in the station (devices with the same name on several controllers), it is possible to use the following notation controllerName/deviceName as parameter for @Named .
**: The respective name or ID must be given with @Named

A non-singleton type will create a new instance of the type on each injection. Typically, you will use the following construct:

 @Inject Provider<TYPE> typeProvider;
 ...
 TYPE instance1 = typeProvider.get();
 TYPE instance2 = typeProvider.get();
 

This annotation will cause the creation of a RoboticsAPIContext instance whenever the task is instantiated on the application server.


Optional Element Summary
 String configFileUrl
          The resource URL of the RoboticsAPI configuration file, relative to the task class, as used in Class.getResource(String).
 

configFileUrl

public abstract String configFileUrl
The resource URL of the RoboticsAPI configuration file, relative to the task class, as used in Class.getResource(String). Defaults to .

Default:
"RoboticsAPI.config.xml"


Copyright © 2019. All rights reserved.