|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.api.Descriptors
public final class Descriptors
Main entry point into the ShrinkWrap Descriptors project.
Method Summary | ||
---|---|---|
static
|
create(Class<T> type)
Creates a new Descriptor instance; the predefined default descriptor name for this type will be used. |
|
static
|
create(Class<T> type,
String descriptorName)
Creates a new named Descriptor instance. |
|
static
|
importAs(Class<T> type)
Returns a new DescriptorImporter instance, ready to import as a
new Descriptor instance of the given type |
|
static
|
importAs(Class<T> type,
String descriptorName)
Returns a new named DescriptorImporter instance, ready to import as a
new Descriptor instance of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends Descriptor> T create(Class<T> type) throws IllegalArgumentException
T
- type
-
IllegalArgumentException
- If the type is not specifiedcreate(Class, String)
public static <T extends Descriptor> T create(Class<T> type, String descriptorName) throws IllegalArgumentException
Descriptor
instance. If the name specified is null,
the default name for this type will be assigned.
T
- type
- descriptorName
- the descriptor name
IllegalArgumentException
- If the type is not specifiedpublic static <T extends Descriptor> DescriptorImporter<T> importAs(Class<T> type) throws IllegalArgumentException
DescriptorImporter
instance, ready to import as a
new Descriptor
instance of the given type
type
-
IllegalArgumentException
- If the type is not specifiedpublic static <T extends Descriptor> DescriptorImporter<T> importAs(Class<T> type, String descriptorName) throws IllegalArgumentException
DescriptorImporter
instance, ready to import as a
new Descriptor
instance of the given type. If the name specified is null,
the default name for this type will be assigned.
type
- descriptorName
-
IllegalArgumentException
- If the type is not specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |