org.jboss.ejb3
Interface DeploymentUnit


public interface DeploymentUnit

Comment


Method Summary
 java.lang.Object addAttachment(java.lang.String name, java.lang.Object attachment)
          Add attachment
 java.lang.Object getAttachment(java.lang.String name)
          Get attachment
 java.util.List<java.lang.Class> getClasses()
           
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String getDefaultEntityManagerName()
           
 java.util.Map getDefaultPersistenceProperties()
           
 java.net.URL getEjbJarXml()
           
 InterceptorInfoRepository getInterceptorInfoRepository()
           
 java.net.URL getJbossXml()
           
 java.util.Hashtable getJndiProperties()
           
 org.jboss.ejb3.vfs.spi.VirtualFile getMetaDataFile(java.lang.String string)
           
 java.net.URL getPersistenceXml()
           
 java.lang.String getRelativePath()
          Get the relative path of this deployment in the complete deployment structure.
 java.net.URL getRelativeURL(java.lang.String path)
           
 java.lang.ClassLoader getResourceLoader()
           
 java.util.List<org.jboss.ejb3.vfs.spi.VirtualFile> getResources(org.jboss.ejb3.vfs.spi.VirtualFileFilter filter)
           
 org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()
           
 java.lang.String getShortName()
          Get the file name of the deployment root (x.ejb).
 java.net.URL getUrl()
           
 java.lang.Object removeAttachment(java.lang.String name)
          Remove attachment
 

Method Detail

addAttachment

java.lang.Object addAttachment(java.lang.String name,
                               java.lang.Object attachment)
Add attachment

Parameters:
name - the name of the attachment
attachment - the attachment
Returns:
any previous attachment
Throws:
java.lang.IllegalArgumentException - for a null name or attachment
java.lang.UnsupportedOperationException - when not supported by the implementation

getAttachment

java.lang.Object getAttachment(java.lang.String name)
Get attachment

Parameters:
name - the name of the attachment
Returns:
the attachment or null if not present
Throws:
java.lang.IllegalArgumentException - for a null name

removeAttachment

java.lang.Object removeAttachment(java.lang.String name)
Remove attachment

Parameters:
name - the name of the attachment
Returns:
the attachment or null if not present
Throws:
java.lang.IllegalArgumentException - for a null name
java.lang.UnsupportedOperationException - when not supported by the implementation

getClassLoader

java.lang.ClassLoader getClassLoader()

getResourceLoader

java.lang.ClassLoader getResourceLoader()

getShortName

java.lang.String getShortName()
Get the file name of the deployment root (x.ejb).

Returns:
the file name of the deployment root

getRelativePath

java.lang.String getRelativePath()
Get the relative path of this deployment in the complete deployment structure. The root deployment relative path will have "". An ejb jar(x.jar) in an ear (z.ear) would have a relative path of "x.jar".

Returns:

getResources

java.util.List<org.jboss.ejb3.vfs.spi.VirtualFile> getResources(org.jboss.ejb3.vfs.spi.VirtualFileFilter filter)

getUrl

java.net.URL getUrl()

getPersistenceXml

java.net.URL getPersistenceXml()

getEjbJarXml

java.net.URL getEjbJarXml()

getJbossXml

java.net.URL getJbossXml()

getClasses

java.util.List<java.lang.Class> getClasses()

getDefaultEntityManagerName

java.lang.String getDefaultEntityManagerName()

getDefaultPersistenceProperties

java.util.Map getDefaultPersistenceProperties()

getJndiProperties

java.util.Hashtable getJndiProperties()

getInterceptorInfoRepository

InterceptorInfoRepository getInterceptorInfoRepository()

getRelativeURL

java.net.URL getRelativeURL(java.lang.String path)

getMetaDataFile

org.jboss.ejb3.vfs.spi.VirtualFile getMetaDataFile(java.lang.String string)

getRootFile

org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()