org.glassfish.javaee.full.deployment
Class EarDetector

java.lang.Object
  extended by org.glassfish.javaee.full.deployment.EarDetector
All Implemented Interfaces:
ArchiveDetector

@Service(name="ear")
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class EarDetector
extends Object
implements ArchiveDetector

Detects ear type archives. It's rank can be set using system property EAR_DETECTOR_RANK_PROP. Default rank is DEFAULT_EAR_DETECTOR_RANK.

Author:
sanjeeb.sahoo@oracle.com

Field Summary
static String ARCHIVE_TYPE
           
static int DEFAULT_EAR_DETECTOR_RANK
           
static String EAR_DETECTOR_RANK_PROP
           
 
Constructor Summary
EarDetector()
           
 
Method Summary
 ArchiveHandler getArchiveHandler()
           
 ArchiveType getArchiveType()
           
 boolean handles(ReadableArchive archive)
           
 int rank()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EAR_DETECTOR_RANK_PROP

public static final String EAR_DETECTOR_RANK_PROP
See Also:
Constant Field Values

DEFAULT_EAR_DETECTOR_RANK

public static final int DEFAULT_EAR_DETECTOR_RANK
See Also:
Constant Field Values

ARCHIVE_TYPE

public static final String ARCHIVE_TYPE
See Also:
Constant Field Values
Constructor Detail

EarDetector

public EarDetector()
Method Detail

rank

public int rank()
Specified by:
rank in interface ArchiveDetector

handles

public boolean handles(ReadableArchive archive)
                throws IOException
Specified by:
handles in interface ArchiveDetector
Throws:
IOException

getArchiveHandler

public ArchiveHandler getArchiveHandler()
Specified by:
getArchiveHandler in interface ArchiveDetector

getArchiveType

public ArchiveType getArchiveType()
Specified by:
getArchiveType in interface ArchiveDetector


Copyright © 2012. All Rights Reserved.