Class InstancePreRegisteredEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.cloud.client.discovery.event.InstancePreRegisteredEvent
-
- All Implemented Interfaces:
Serializable
public class InstancePreRegisteredEvent extends org.springframework.context.ApplicationEvent
An event to fire before a service is registered.- Author:
- Ryan Baxter
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description InstancePreRegisteredEvent(Object source, Registration registration)
Create a new pre registration event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Registration
getRegistration()
Get the registration data.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
InstancePreRegisteredEvent
public InstancePreRegisteredEvent(Object source, Registration registration)
Create a new pre registration event.- Parameters:
source
- the object on which the event initially occurred (nevernull
)registration
- the registration meta data
-
-
Method Detail
-
getRegistration
public Registration getRegistration()
Get the registration data.- Returns:
- the registration data
-
-