org.jboss.deployers.vfs.plugins.client
Class AbstractVFSDeployment

java.lang.Object
  extended by org.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl
      extended by org.jboss.deployers.client.plugins.deployment.AbstractDeployment
          extended by org.jboss.deployers.vfs.plugins.client.AbstractVFSDeployment
All Implemented Interfaces:
Externalizable, Serializable, Deployment, PredeterminedManagedObjectAttachments, VFSDeployment

public class AbstractVFSDeployment
extends AbstractDeployment
implements VFSDeployment

AbstractVFSDeployment.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Ales Justin
See Also:
Serialized Form

Constructor Summary
AbstractVFSDeployment()
          For serialization
AbstractVFSDeployment(org.jboss.virtual.VirtualFile root)
          Create a new VFSDeployment.
 
Method Summary
 org.jboss.virtual.VirtualFile getRoot()
          Get the root of the deployment
 String getSimpleName()
          Get the simple name.
 void readExternal(ObjectInput in)
           
 void setDirectRootSerialization(boolean directRootSerialization)
          Should we serialize root directly.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.jboss.deployers.client.plugins.deployment.AbstractDeployment
getName, getTypes, setName, setTypes
 
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl
getPredeterminedManagedObjects, setPredeterminedManagedObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.deployers.client.spi.Deployment
getName, getTypes, setTypes
 
Methods inherited from interface org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments
getPredeterminedManagedObjects, setPredeterminedManagedObjects
 

Constructor Detail

AbstractVFSDeployment

public AbstractVFSDeployment()
For serialization


AbstractVFSDeployment

public AbstractVFSDeployment(org.jboss.virtual.VirtualFile root)
Create a new VFSDeployment.

Parameters:
root - the root
Throws:
IllegalArgumentException - for a null root
Method Detail

getRoot

public org.jboss.virtual.VirtualFile getRoot()
Description copied from interface: VFSDeployment
Get the root of the deployment

Specified by:
getRoot in interface VFSDeployment
Returns:
the root

getSimpleName

public String getSimpleName()
Description copied from class: AbstractDeployment
Get the simple name.

Specified by:
getSimpleName in interface Deployment
Overrides:
getSimpleName in class AbstractDeployment
Returns:
the name.

toString

public String toString()
Overrides:
toString in class Object

setDirectRootSerialization

public void setDirectRootSerialization(boolean directRootSerialization)
Should we serialize root directly. e.g. the root is memory virtual file instance

Parameters:
directRootSerialization - the direct root serialization flag
See Also:
org.jboss.virtual.plugins.context.memory.MemoryContextHandler

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractDeployment
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractDeployment
Parameters:
out - the output
Throws:
IOException - for any error


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.