com.sun.enterprise.module.common_impl
Class ByteArrayInhabitantsDescriptor
java.lang.Object
com.sun.enterprise.module.common_impl.ByteArrayInhabitantsDescriptor
- All Implemented Interfaces:
- InhabitantsDescriptor, java.io.Serializable
public class ByteArrayInhabitantsDescriptor
- extends java.lang.Object
- implements InhabitantsDescriptor, java.io.Serializable
Implementation of InhabitantsDescriptor that loads the inhabitants
meta-data from a byte array (usually coming from a inhabitant file).
- Author:
- Jerome Dochez
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Iterable<com.sun.hk2.component.InhabitantParser> |
createScanner()
Creates an InhabitantsScanner instance capable of returning the
metadata for all inhabitant. |
java.lang.String |
getSystemId()
Return the unique identifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
systemId
public final java.lang.String systemId
ByteArrayInhabitantsDescriptor
public ByteArrayInhabitantsDescriptor(java.lang.String systemId,
byte[] data)
ByteArrayInhabitantsDescriptor
public ByteArrayInhabitantsDescriptor(java.net.URL systemId,
byte[] data)
getSystemId
public java.lang.String getSystemId()
- Description copied from interface:
InhabitantsDescriptor
- Return the unique identifier
- Specified by:
getSystemId in interface InhabitantsDescriptor
- Returns:
- unique id
createScanner
public java.lang.Iterable<com.sun.hk2.component.InhabitantParser> createScanner()
throws java.io.IOException
- Description copied from interface:
InhabitantsDescriptor
- Creates an
InhabitantsScanner instance capable of returning the
metadata for all inhabitant.
- Specified by:
createScanner in interface InhabitantsDescriptor
- Returns:
- the scanner for inhabitant metadata
- Throws:
java.io.IOException - if the scanner create fails initialization
Copyright © 2011 Oracle Corporation. All Rights Reserved.