|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl
org.jboss.deployers.plugins.structure.ContextInfoImpl
public class ContextInfoImpl
ContextInfoImpl.
Field Summary |
---|
Fields inherited from interface org.jboss.deployers.spi.structure.ContextInfo |
---|
DEFAULT_METADATA_PATH |
Constructor Summary | |
---|---|
ContextInfoImpl()
Create a new ContextInfoImpl. |
|
ContextInfoImpl(String path)
Create a new ContextInfoImpl. |
|
ContextInfoImpl(String path,
List<ClassPathEntry> classPath)
Create a new ContextInfoImpl. |
|
ContextInfoImpl(String path,
List<String> metaDataPath,
List<ClassPathEntry> classPath)
Create a new ContextInfoImpl. |
|
ContextInfoImpl(String path,
String metaDataPath,
List<ClassPathEntry> classPath)
Create a new ContextInfoImpl. |
Method Summary | |
---|---|
void |
addClassPathEntry(ClassPathEntry entry)
Add a class path entry |
void |
addMetaDataPath(String path)
Add the metaDataPath. |
boolean |
equals(Object obj)
|
List<ClassPathEntry> |
getClassPath()
Get the classpath locations within the context |
String |
getComparatorClassName()
The comparator class name, the class must implement |
List<String> |
getMetaDataPath()
Get the logical path of the metdata location. |
ModificationType |
getModificationType()
Get the modification type. |
String |
getPath()
Get the logical path of the context |
int |
getRelativeOrder()
Get the relative order of this context |
int |
hashCode()
|
void |
readExternal(ObjectInput in)
|
void |
setClassPath(List<ClassPathEntry> classPath)
Set the classPath. |
void |
setComparatorClassName(String className)
The comparator class name, the class must implement |
void |
setMetaDataPath(List<String> metaDataPath)
Set the meta data paths. |
void |
setModificationType(ModificationType modificationType)
Set the modification type. |
void |
setPath(String path)
Set the path. |
void |
setRelativeOrder(int relativeOrder)
Set the relative order of this context |
String |
toString()
|
protected void |
toString(StringBuilder builder)
For subclasses to override toString() |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl |
---|
getPredeterminedManagedObjects, setPredeterminedManagedObjects |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments |
---|
getPredeterminedManagedObjects, setPredeterminedManagedObjects |
Constructor Detail |
---|
public ContextInfoImpl()
public ContextInfoImpl(String path)
path
- the path
IllegalArgumentException
- for a null pathpublic ContextInfoImpl(String path, List<ClassPathEntry> classPath)
path
- the pathclassPath
- the classpath
IllegalArgumentException
- for a null pathpublic ContextInfoImpl(String path, String metaDataPath, List<ClassPathEntry> classPath)
path
- the pathmetaDataPath
- a single metadata pathclassPath
- the class path
IllegalArgumentException
- for a null path or metadata pathpublic ContextInfoImpl(String path, List<String> metaDataPath, List<ClassPathEntry> classPath)
path
- the pathmetaDataPath
- the metadata pathsclassPath
- the class path
IllegalArgumentException
- for a null path or metadata pathMethod Detail |
---|
public String getPath()
ContextInfo
getPath
in interface ContextInfo
public void setPath(String path)
path
- the path.
IllegalArgumentException
- for a null pathpublic List<String> getMetaDataPath()
ContextInfo
getMetaDataPath
in interface ContextInfo
public void setMetaDataPath(List<String> metaDataPath)
metaDataPath
- the meta data pathspublic void addMetaDataPath(String path)
ContextInfo
addMetaDataPath
in interface ContextInfo
path
- the metaDataPath.public List<ClassPathEntry> getClassPath()
ContextInfo
getClassPath
in interface ContextInfo
public void setClassPath(List<ClassPathEntry> classPath)
classPath
- the classPath.public void addClassPathEntry(ClassPathEntry entry)
ContextInfo
addClassPathEntry
in interface ContextInfo
entry
- the entry to addpublic String getComparatorClassName()
ContextInfo
java.util.ComparatorIf the class has a public static field called "INSTANCE" then that will be used rather than creating a new object.
If none is given then the deployments are ordered by their relative order and then path/simple name.
getComparatorClassName
in interface ContextInfo
public void setComparatorClassName(String className)
ContextInfo
setComparatorClassName
in interface ContextInfo
className
- the comparator class namepublic int getRelativeOrder()
ContextInfo
getRelativeOrder
in interface ContextInfo
public void setRelativeOrder(int relativeOrder)
ContextInfo
setRelativeOrder
in interface ContextInfo
relativeOrder
- the relative orderpublic ModificationType getModificationType()
ContextInfo
getModificationType
in interface ContextInfo
public void setModificationType(ModificationType modificationType)
ContextInfo
setModificationType
in interface ContextInfo
modificationType
- the modification typepublic String toString()
toString
in class Object
protected void toString(StringBuilder builder)
builder
- the builderpublic boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class PredeterminedManagedObjectAttachmentsImpl
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PredeterminedManagedObjectAttachmentsImpl
out
- the output
IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |