|
||||||||||
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(DeploymentUnit unit,
Class<T> type)
Deprecated. |
|
static Object |
search(DeploymentUnit unit,
String name)
Deprecated. |
|
static
|
search(DeploymentUnit unit,
String name,
Class<T> expectedType)
Deprecated. |
|
static
|
searchAncestors(DeploymentUnit unit,
Class<T> type)
Get an attachment of the given type, search ancestors |
|
static Object |
searchAncestors(DeploymentUnit unit,
String name)
Get a named attachment, search ancestors |
|
static
|
searchAncestors(DeploymentUnit unit,
String name,
Class<T> expectedType)
Get named attachment of a given type, search ancestors |
|
static
|
searchChildren(DeploymentUnit unit,
Class<T> type)
Get an attachment of the given type, search in children |
|
static Object |
searchChildren(DeploymentUnit unit,
String name)
Get a named attachment, search in children |
|
static
|
searchChildren(DeploymentUnit unit,
String name,
Class<T> expectedType)
Get named attachment of a given type, search in children |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentLocator()
Method Detail |
---|
@Deprecated public static Object search(DeploymentUnit unit, String name)
unit
- the deployment unitname
- the name of the attachment
IllegalArgumentException
- for a null name@Deprecated public static <T> T search(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@Deprecated public static <T> T search(DeploymentUnit unit, Class<T> type)
T
- the expected typetype
- the typeunit
- the deployment unit
IllegalArgumentException
- for a null name or typepublic static Object searchAncestors(DeploymentUnit unit, String name)
unit
- the deployment unitname
- the name of the attachment
IllegalArgumentException
- for a null namepublic static <T> T searchAncestors(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 expectedTypepublic static <T> T searchAncestors(DeploymentUnit unit, Class<T> type)
T
- the expected typetype
- the typeunit
- the deployment unit
IllegalArgumentException
- for a null name or typepublic static Object searchChildren(DeploymentUnit unit, String name)
unit
- the deployment unitname
- the name of the attachment
IllegalArgumentException
- for a null namepublic static <T> T searchChildren(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 expectedTypepublic static <T> T searchChildren(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 |