Class IntrospectionImpl
java.lang.Object
io.github.kaktushose.jdac.introspection.internal.IntrospectionImpl
- All Implemented Interfaces:
Introspection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSub(Properties properties, Stage stage) Returns the currentStageof this introspection instance.<T> TGets the value of a property.voidpublish(FrameworkEvent event) <T extends FrameworkEvent>
Subscriptionsubscribe(Class<T> event, Subscriber<T> subscriber) Subscribes to specificFrameworkEventallowing you to execute custom logic at multiple points during runtime.
-
Field Details
-
INTROSPECTION
-
-
Constructor Details
-
IntrospectionImpl
-
-
Method Details
-
currentStage
Description copied from interface:IntrospectionReturns the currentStageof this introspection instance. To know which properties are available take a look at the docs ofStageandProperty.- Specified by:
currentStagein interfaceIntrospection- Returns:
- the current
Stage
-
get
Description copied from interface:IntrospectionGets the value of a property. At that point practically all properties should be resolved and caches, you can expect nearly instant access time.
To exactly know what this does take a look at
PropertyProviderandPropertyProvider.Context.get(Property).- Specified by:
getin interfaceIntrospection- Parameters:
type- the requestedProperty- Returns:
- the property's value
-
subscribe
Description copied from interface:IntrospectionSubscribes to specificFrameworkEventallowing you to execute custom logic at multiple points during runtime.- Specified by:
subscribein interfaceIntrospection- Parameters:
event- the concrete class ofFrameworkEvent, e.g.RuntimeCloseEvent.classsubscriber- theSubscriberholding the logic to be executed- Returns:
- the
Subscriptioninstance as a unique reference to your subscription, allowing you to later cancel it.
-
publish
-
createSub
-