|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.api.deployment.archive.ArchiveType
@Contract @Scoped(value=org.jvnet.hk2.component.Singleton.class) public abstract class ArchiveType
ArchiveType is an extension over ModuleType defined in jsr88 API. It is analogous to type of an archive or a module or deployment unit, whichever way you prefer to call them. Adding a new archive type (or ArchiveType) is a very expensive operation. For example, there has been no new archive types introduced in Java EE since RAR type. Adding a new archive type involves writing an ArchiveHandler which involves writing logic to create class loaders. Now, that's not same as adding adding a technology type like jersey or jpa.
This is only a contract. Actual types are made available as services by appropriate containers. GlassFish deployment framework uses the word container to refer to services. Containers are actually defined in Java EE platform spec. ArchiveType maps to the way containers are defined in the Java EE platform spec.
| Constructor Summary | |
|---|---|
protected |
ArchiveType(String value)
Same as calling #ArchiveType(String, String) with an empty string as extension. |
protected |
ArchiveType(String value,
String extension)
Ensure a correct value is passed as that's what is returned by toString() which is sometimes used during
comparison as some old APIs like ArchiveHandler.getArchiveType() use String. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getExtension()
Return the file extension string for this module type. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ArchiveType(String value,
String extension)
toString() which is sometimes used during
comparison as some old APIs like ArchiveHandler.getArchiveType() use String.
value - value of this archive type as reported in toString()extension - file extension for this type of archiveprotected ArchiveType(String value)
| Method Detail |
|---|
public String getExtension()
public final String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||