|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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.):
LBR*Robot*Tool*Workpiece** : Non-singleton, unless the type is annotated with @SingletonIProcessData**
@Singleton.@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
.@NamedA 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). |
public abstract String configFileUrl
Class.getResource(String). Defaults to .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||