T
- Concrete type of NotificationConfiguration
abstract class NotificationConfigurationStaxUnmarshaller<T extends NotificationConfiguration> extends java.lang.Object implements Unmarshaller<java.util.Map.Entry<java.lang.String,NotificationConfiguration>,StaxUnmarshallerContext>
NotificationConfiguration
. Current only
QueueConfiguration
and TopicConfiguration
extend this class.Constructor and Description |
---|
NotificationConfigurationStaxUnmarshaller() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createConfiguration()
Factory method to create the appropriate subclass of
NotificationConfiguration |
protected abstract boolean |
handleXmlEvent(T config,
StaxUnmarshallerContext context,
int targetDepth)
Callback to allow subclass first shot at handling an XML event.
|
java.util.Map.Entry<java.lang.String,NotificationConfiguration> |
unmarshall(StaxUnmarshallerContext context)
Id (aka configuration name) isn't modeled on the actual
NotificationConfiguration
class but as the key name in the map of configurations in
BucketNotificationConfiguration |
NotificationConfigurationStaxUnmarshaller()
public java.util.Map.Entry<java.lang.String,NotificationConfiguration> unmarshall(StaxUnmarshallerContext context) throws java.lang.Exception
NotificationConfiguration
class but as the key name in the map of configurations in
BucketNotificationConfiguration
unmarshall
in interface Unmarshaller<java.util.Map.Entry<java.lang.String,NotificationConfiguration>,StaxUnmarshallerContext>
java.lang.Exception
protected abstract T createConfiguration()
NotificationConfiguration
protected abstract boolean handleXmlEvent(T config, StaxUnmarshallerContext context, int targetDepth) throws java.lang.Exception
config
- NotificationConfiguration
object we are unmarshalling intocontext
- Context of XML unmarshallingtargetDepth
- expected depth for this level of unmarshallingjava.lang.Exception