Interface TestService
- All Known Implementing Classes:
TestServiceImplementation,TestServiceImplementation
public interface TestService
A test service.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRepresents an event record, capturing name and arguments. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA server-level default declared in this non-element interface, simulating the production scenario where server framework code declares an@ElementDefaultAttribute(e.g.static final StringShared attribute key used to verify that each element's@ElementDefaultAttributeis scoped to that element and does not bleed into sibling elements loaded from the same classpath.static final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionGets the objects passed into the consumed eventsGets the events registered for consumption and consumedReturns the implementation's package.voidAttempts to get the element registry SPI.voidAttempts to get the element SPI.
-
Field Details
-
SHARED_DEFAULT_ATTR
Shared attribute key used to verify that each element's@ElementDefaultAttributeis scoped to that element and does not bleed into sibling elements loaded from the same classpath.- See Also:
-
SERVER_OVERRIDABLE_ATTR
A server-level default declared in this non-element interface, simulating the production scenario where server framework code declares an@ElementDefaultAttribute(e.g.auth.enabled=false) while a custom element re-declares the same key with a different default (e.g.auth.enabled=true). The element's declaration must win when the operator has not explicitly overridden the key.- See Also:
-
TEST_ELEMENT_EVENT_1
- See Also:
-
TEST_ELEMENT_EVENT_2
- See Also:
-
TEST_ELEMENT_EVENT_3
- See Also:
-
-
Method Details
-
getImplementationPackage
String getImplementationPackage()Returns the implementation's package.- Returns:
- the implementation's package name.
-
testElementSpi
void testElementSpi()Attempts to get the element SPI. -
testElementRegistrySpi
void testElementRegistrySpi()Attempts to get the element registry SPI. -
getConsumedEvents
Gets the events registered for consumption and consumed- Returns:
- A list of consumed events
-
getConsumedEventObjects
List<TestService.MethodEventRecord> getConsumedEventObjects()Gets the objects passed into the consumed events- Returns:
- the event objects
-