Package org.apache.maven.internal.impl
Class DefaultTypeRegistry
java.lang.Object
org.apache.maven.eventspy.AbstractEventSpy
org.apache.maven.internal.impl.DefaultTypeRegistry
- All Implemented Interfaces:
Service
,TypeRegistry
,EventSpy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.eventspy.EventSpy
EventSpy.Context
-
Constructor Summary
ConstructorDescriptionDefaultTypeRegistry
(Map<String, Type> types, LegacyArtifactHandlerManager manager) -
Method Summary
Methods inherited from class org.apache.maven.eventspy.AbstractEventSpy
close, init
-
Constructor Details
-
DefaultTypeRegistry
-
-
Method Details
-
onEvent
Description copied from interface:EventSpy
Notifies the spy of some build event/operation.- Specified by:
onEvent
in interfaceEventSpy
- Overrides:
onEvent
in classAbstractEventSpy
- Parameters:
event
- The event, nevernull
.- See Also:
-
getType
Description copied from interface:TypeRegistry
Obtain theType
from the specifiedid
. If no type is known forid
, the registry will create a customType
for it.- Specified by:
getType
in interfaceTypeRegistry
- Parameters:
id
- the id of the type to retrieve- Returns:
- the type
-