
public abstract class DeploymentRegister<T extends DroidiumDeployment> extends Object
| Constructor and Description |
|---|
DeploymentRegister() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T deployment)
Adds deployment into the register.
|
T |
get(org.jboss.shrinkwrap.api.Archive<?> archive)
Gets deployment which is backed by specified archive.
|
T |
get(int i) |
abstract T |
get(String deploymentName) |
List<T> |
getAll() |
T |
getFirst()
Gets firstly added deployment into the register.
|
T |
getLast()
Gets lastly added deployment into the register.
|
int |
getSize() |
void |
remove(int i) |
void |
remove(T deployment) |
public void add(T deployment)
deployment - deployment to addIllegalArgumentException - if deployment is a null objectpublic T getFirst()
null if none was added yetpublic T getLast()
null if none was added yetpublic T get(int i)
i - IndexOutOfBoundsExceptionpublic int getSize()
public T get(org.jboss.shrinkwrap.api.Archive<?> archive)
archive - archive to get the deployment ofarchive or null if there is no such mappingpublic void remove(int i)
public void remove(T deployment)
deployment - deployment you want to remove from registryIllegalArgumentException - if deployment is a null objectCopyright © 2013 JBoss by Red Hat. All rights reserved.