public class PipeManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static <CFG extends PipeConfiguration<CFG>> |
config(String name,
Class<CFG> pipeConfigurationClass)
Begins a new fluent configuration stanza.
|
static Pipe |
getPipe(String name)
Fetches a named pipe
|
static LoaderPipe |
getPipe(String name,
android.app.Activity activity)
Look up for a pipe object.
|
static LoaderPipe |
getPipe(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
Look up for a pipe object.
|
static <CFG extends PipeConfiguration<CFG>> |
registerConfigurationProvider(Class<CFG> configurationClass,
org.jboss.aerogear.android.core.ConfigurationProvider<CFG> provider)
This will add a new Configuration that this Manager can build
Configurations for.
|
public static <CFG extends PipeConfiguration<CFG>> void registerConfigurationProvider(Class<CFG> configurationClass, org.jboss.aerogear.android.core.ConfigurationProvider<CFG> provider)
CFG - the actual Configuration typeconfigurationClass - the class of configuration to be registeredprovider - the instance which will provide the configuration.public static <CFG extends PipeConfiguration<CFG>> CFG config(String name, Class<CFG> pipeConfigurationClass)
CFG - the Configuration type.name - an identifier which will be used to fetch the Pipe after
configuration is finished. See : getPipe(java.lang.String)pipeConfigurationClass - the class of the configuration type.public static Pipe getPipe(String name)
name - the name of the Pipe given in config(java.lang.String, java.lang.Class)public static LoaderPipe getPipe(String name, android.app.Activity activity)
name - the name of the actual pipeactivity - the activity whose lifecycle the loader will followpublic static LoaderPipe getPipe(String name, android.app.Fragment fragment, android.content.Context applicationContext)
name - the name of the actual pipefragment - the Fragment whose lifecycle the activity will followapplicationContext - the Context of the application.Copyright © 2016 JBoss by Red Hat. All rights reserved.