|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.enterprise.deploy.model Interface J2eeApplicationObject
- All Superinterfaces:
- DeployableObject
public interface J2eeApplicationObject
- extends DeployableObject
Implements:
DeployableObject
J2eeApplicationObject 是表示 J2EE 应用程序 (EAR) 的接口;它维护归档文件中每个模块的 DeployableObject。
J2eeApplicationObject is an interface that represents a J2EE application (EAR); it maintains a DeployableObject for each module in the archive.
Method Summary | |
---|---|
void |
addXpathListener(ModuleType type,
String xpath,
XpathListener xpl)
Register a listener for changes in XPath that are related to this deployableObject. |
DDBean[] |
getChildBean(ModuleType type,
String xpath)
Return a list of DDBean based upon an XPath; all deployment descriptors of the specified type are searched. |
DeployableObject |
getDeployableObject(String uri)
Return the DeployableObject of the specified URI designator. |
DeployableObject[] |
getDeployableObjects()
Return the all DeployableObjects in this application. |
DeployableObject[] |
getDeployableObjects(ModuleType type)
Return the all DeployableObjects of the specified type. |
String[] |
getModuleUris()
Return the list of URIs for all modules in the application. |
String[] |
getModuleUris(ModuleType type)
Return the list of URIs of the designated module type. |
String[] |
getText(ModuleType type,
String xpath)
Return the text value from the XPath; search only the deployment descriptors of the specified type. |
void |
removeXpathListener(ModuleType type,
String xpath,
XpathListener xpl)
Unregister the listener for an XPath. |
Methods inherited from interface javax.enterprise.deploy.model.DeployableObject |
---|
entries, getChildBean, getClassFromScope, getDDBeanRoot, getDDBeanRoot, getEntry, getModuleDTDVersion, getText, getType |
Method Detail |
---|
public DeployableObject
getDeployableObject(String uri)
返回指定 URI 标志符的 DeployableObject。
uri | 描述要获取模块的位置。 |
return | 描述位于此 URI 的 J2EE 模块的 DeployableObject;如果无匹配值,则返回 'null'。 |
getDeployableObject
DeployableObject getDeployableObject(String uri)
- Return the DeployableObject of the specified URI designator.
- Parameters:
uri
- Describes where to get the module from.- Returns:
- the DeployableObject describing the j2ee module at this uri or 'null' if there is not match.
public DeployableObject[]
getDeployableObjects(ModuleType type)
返回指定类型的所有 DeployableObject。
type | 要返回的模块的类型。 |
return | 描述位于此 URI 的 J2EE 模块的 DeployableObject;如果无匹配值,则返回 'null'。 |
getDeployableObjects
DeployableObject[] getDeployableObjects(ModuleType type)
- Return the all DeployableObjects of the specified type.
- Parameters:
type
- The type of module to return.- Returns:
- the list of DeployableObjects describing the j2ee module at this uri or 'null' if there are no matches.
public DeployableObject[]
getDeployableObjects()
返回此应用程序中的所有 DeployableObject。
return | 描述位于此 URI 的 J2EE 模块的 DeployableObject;如果无匹配值,则返回 'null'。 |
getDeployableObjects
DeployableObject[] getDeployableObjects()
- Return the all DeployableObjects in this application.
- Returns:
- the DeployableObject describing the j2ee module at this uri or 'null' if there are no matches.
public String[]
getModuleUris(ModuleType type)
返回指定模块类型的 URI 列表。
type | 要返回的模块的类型。 |
return | 所含模块的 URI;如果无匹配值,则返回 'null'。 |
getModuleUris
String[] getModuleUris(ModuleType type)
- Return the list of URIs of the designated module type.
- Parameters:
type
- The type of module to return.- Returns:
- the Uris of the contained modules or 'null' if there are no matches.
public String[]
getModuleUris()
返回应用程序中所有模块的 URI 列表。
return | 所含模块的 URI;如果无匹配值,则返回 'null'。 |
getModuleUris
String[] getModuleUris()
- Return the list of URIs for all modules in the application.
- Returns:
- the Uris of the contained modules or 'null' if there are no matches.
public DDBean[]
getChildBean(ModuleType type, String xpath)
返回基于某个 XPath 的 DDBean 列表;搜索指定类型的所有部署描述符。
type | 要查询的部署描述符的类型。 |
xpath | 引用部署描述符中某个位置的 XPath 字符串。 |
return | DDBeans 列表;如果无匹配值,则返回 'null'。 |
getChildBean
DDBean[] getChildBean(ModuleType type, String xpath)
- Return a list of DDBean based upon an XPath; all
deployment descriptors of the specified type are searched.
- Parameters:
type
- The type of deployment descriptor to query.xpath
- An XPath string referring to a location in the deployment descriptor- Returns:
- The list of DDBeans or 'null' of there are no matches.
public String[]
getText(ModuleType type, String xpath)
返回 XPath 中的文本值;仅搜索指定类型的部署描述符。
type | 要查询的部署描述符的类型。 |
xpath | 引用部署描述符中某个位置的 XPath 字符串。 |
return | 此 XPath 的文本值;如果无匹配值,则返回 'null'。 |
getText
String[] getText(ModuleType type, String xpath)
- Return the text value from the XPath; search only the
deployment descriptors of the specified type.
- Parameters:
type
- The type of deployment descriptor to query.xpath
- An xpath string referring to a location in the deployment descriptor- Returns:
- The text values of this xpath or 'null' if there are no matches.
public void
addXpathListener(ModuleType type, String xpath, XpathListener xpl)
注册一个侦听器,以侦听与此 deployableObject 相关的 XPath 中的更改。
type | 要查询的部署描述符的类型。 |
xpath | 要侦听的 XPath。 |
xpl | 侦听器。 |
addXpathListener
void addXpathListener(ModuleType type, String xpath, XpathListener xpl)
- Register a listener for changes in XPath that are related
to this deployableObject.
- Parameters:
type
- The type of deployment descriptor to query.xpath
- The xpath to listen for.xpl
- The listener.
public void
removeXpathListener(ModuleType type, String xpath, XpathListener xpl)
取消为某个 XPath 注册的侦听器。
type | 要查询的部署描述符的类型。 |
xpath | 要侦听的 XPath。 |
xpl | 侦听器。 |
removeXpathListener
void removeXpathListener(ModuleType type, String xpath, XpathListener xpl)
- Unregister the listener for an XPath.
- Parameters:
type
- The type of deployment descriptor to query.xpath
- he XPath to listen forxpl
- The listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!