|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.spi.deployer.helpers.AttachmentLocator
public class AttachmentLocator
Search a DeploymentUnit structure from child to parent for a matching attachment.
| Constructor Summary | |
|---|---|
AttachmentLocator()
|
|
| Method Summary | ||
|---|---|---|
static
|
search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
Class<T> type)
Get an attachment of the given type |
|
static Object |
search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name)
Get a named attachment |
|
static
|
search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
Class<T> expectedType)
Get named attachment of a given type |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentLocator()
| Method Detail |
|---|
public static Object search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name)
unit - the deployment unitname - the name of the attachment
IllegalArgumentException - for a null name
public static <T> T search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
Class<T> expectedType)
T - the expected typeunit - the deployment unitname - the name of the attachmentexpectedType - the expected type
IllegalArgumentException - for a null name or expectedType
public static <T> T search(org.jboss.deployers.structure.spi.DeploymentUnit unit,
Class<T> type)
T - the expected typetype - the typeunit - the deployment unit
IllegalArgumentException - for a null name or type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||