ThingWorx Edge Java SDK Edge Extensions > Developing Your Own Edge Thing Shape
Developing Your Own Edge Thing Shape
To create an Edge Thing Shape, you need to extend the EdgeThingShape class and implement the following interfaces:
EdgeThingShapeEventListener — Enables the ETS to participate in the life cycle of its parent Edge Thing Template and includes the client connection events. When edge client events occur, an ETS is notified by the its parent EdgeThingTemplate (ETT). The ETT relays all the events it receives to each of the event handlers. The supported events include connect, disconnect, bind, unbind, start, and shutdown.
EdgeRemoteConfigurable — Enables the ETS to have an individual infotable that contains its configurations at all times during its life cycle.
EdgeThingShapeServices — Provides a set of utility functions (methods) that every ETS is required to have.
To use an ETS in an edge application, add the ETS to the EdgeThingTemplate that you build to create instances of edge Things. You can then add properties, services, and events to the edge Thing through the ETS. Data shapes are supported as well.
The next two sections provide more details about the Edge Thing Template and Edge Thing Shape. Later sections explain configuration and services.
Was this helpful?