org.jboss.ejb3
Interface DeploymentUnit


public interface DeploymentUnit

Comment

Version:
$Revision: 72202 $
Author:
Bill Burke

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

Method Detail

addAttachment

Object addAttachment(String name,
                     Object attachment)
Add attachment

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

getAttachment

Object getAttachment(String name)
Get attachment

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

removeAttachment

Object removeAttachment(String name)
Remove attachment

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

getClassLoader

ClassLoader getClassLoader()

getResourceLoader

ClassLoader getResourceLoader()

getShortName

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

Returns:
the file name of the deployment root

getRelativePath

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

List<org.jboss.virtual.VirtualFile> getResources(org.jboss.virtual.VirtualFileFilter filter)

getUrl

URL getUrl()

getPersistenceXml

URL getPersistenceXml()

getEjbJarXml

URL getEjbJarXml()

getJbossXml

URL getJbossXml()

getClasses

List<Class> getClasses()

getDefaultEntityManagerName

String getDefaultEntityManagerName()

getDefaultPersistenceProperties

Map getDefaultPersistenceProperties()

getJndiProperties

Hashtable getJndiProperties()

getInterceptorInfoRepository

InterceptorInfoRepository getInterceptorInfoRepository()

getRelativeURL

URL getRelativeURL(String path)

getMetaDataFile

org.jboss.virtual.VirtualFile getMetaDataFile(String string)

getRootFile

org.jboss.virtual.VirtualFile getRootFile()


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