CONFIGURATION - The concrete implementation of the PushConfigurationpublic abstract class PushConfiguration<CONFIGURATION extends PushConfiguration> extends Object implements org.jboss.aerogear.android.core.Config<CONFIGURATION>
| Constructor and Description |
|---|
PushConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CONFIGURATION |
addOnPushRegistrarCreatedListener(OnPushRegistrarCreatedListener listener)
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
PushRegistrar |
asRegistrar()
Creates a
PushRegistrar based on the current configuration and
notifies all listeners |
protected abstract PushRegistrar |
buildRegistrar()
Validates configuration parameters and returns a PushRegistrar
instance.
|
String |
getName() |
Collection<OnPushRegistrarCreatedListener> |
getOnAuthenticationCreatedListeners()
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
CONFIGURATION |
setName(String name) |
CONFIGURATION |
setOnPushRegistrarCreatedListeners(Collection<OnPushRegistrarCreatedListener> listeners)
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
public String getName()
getName in interface org.jboss.aerogear.android.core.Config<CONFIGURATION extends PushConfiguration>public CONFIGURATION setName(String name)
setName in interface org.jboss.aerogear.android.core.Config<CONFIGURATION extends PushConfiguration>public Collection<OnPushRegistrarCreatedListener> getOnAuthenticationCreatedListeners()
public CONFIGURATION addOnPushRegistrarCreatedListener(OnPushRegistrarCreatedListener listener)
listener - new listener to add to the collectionpublic CONFIGURATION setOnPushRegistrarCreatedListeners(Collection<OnPushRegistrarCreatedListener> listeners)
listeners - new collection to replace the current onepublic final PushRegistrar asRegistrar()
PushRegistrar based on the current configuration and
notifies all listenersPushRegistrar based on this configurationIllegalStateException - if the PushRegistrar can not be
constructed.protected abstract PushRegistrar buildRegistrar()
PushRegistrar based on this configurationCopyright © 2015 JBoss by Red Hat. All rights reserved.