Package com.variant.share.schema
Interface Hook
- All Known Subinterfaces:
SchemaHook
,StateHook
,VariationHook
public interface Hook
Representation of an element of one of several
hooks
lists. Depending on where in the variation schema
the hooks
key occurs, individual hooks can have the scope of the entire schema (/hooks
),
of a particular state (/states[]/hooks
), or of a particular variation (/variations[]/hooks
).- Since:
- 0.7
-
Method Summary
-
Method Details
-
getName
String getName()The hook's name. Specified in the optional.../hooks[]/name
schema key, or, if omitted, the simple name of the class.- Since:
- 0.7
-
getClassName
String getClassName()The canonical name of the class implementing this lifecycle hook. Specified in the required../hooks[]/class
schema key. Variant instantiates an instance of this class for each subscribed lifecycle event.- Since:
- 0.7
-
getInit
Class initializer. Specified in the optional.../hooks/?/init
schema key.- Since:
- 0.7
-