public class ComponentInstallationContext extends Object implements InstallationContext
init method of the javax.jbi.component.Bootstrap
implementation for the component.BINDING, ENGINE, SELF_FIRST| Constructor and Description |
|---|
ComponentInstallationContext(String componentName,
int componentType,
String className,
List classPathElements,
DocumentFragment extensionData)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List |
getAbsoluteClassPathElements()
Get a list of elements that comprise the class path for this component.
|
List |
getClassPathElements()
Get a list of elements that comprise the class path for this component.
|
String |
getComponentClassName()
Get the name of the class that implements javax.jbi.component.Component
for this component.
|
String |
getComponentName()
Get the unique name assigned to this component.
|
ComponentContext |
getContext()
Get the component context.
|
String |
getDescription()
Return the description of this component.
|
DocumentFragment |
getInstallationDescriptorExtension()
Return a DOM document fragment representing the installation descriptor
(jbi.xml) extension data for this component, if any is present.
|
String |
getInstallRoot()
Get the installation root directory for this component.
|
String |
getWorkspaceRoot()
Return the workspace root directory for the component.
|
boolean |
isBinding()
Return an indication as to whether the component being installed is a
Binding Component.
|
boolean |
isBootstrapClassLoaderSelfFirst()
Return an indication as to whether the bootstrap class loader should
use the normal hierarchy (parent-first) or an inverted hierarchy
(self-first).
|
boolean |
isComponentClassLoaderSelfFirst()
Return an indication as to whether the component class loader should
use the normal hierarchy (parent-first) or an inverted hierarchy
(self-first).
|
boolean |
isEngine()
Return an indication as to whether the component being installed is a
Service Engine.
|
boolean |
isInstall()
Return an indication as to whether this context is for an install or
an uninstall.
|
void |
setBootstrapClassLoaderSelfFirst()
Set a flag to force the bootstrap class loader to use an inverted
hierarchy (self-first).
|
void |
setClassPathElements(List classPathElements)
Set the list of elements that comprise the class path for this component.
|
void |
setComponentClassLoaderSelfFirst()
Set a flag to force the component class loader to use an inverted
hierarchy (self-first).
|
void |
setComponentClassName(String name)
Set the name of the class that implements javax.jbi.component.Component
for this component.
|
void |
setComponentName(String name)
Set the name of this component.
|
void |
setContext(ComponentContext context)
Set the context for this component.
|
void |
setDescription(String description)
Set the description of this component.
|
void |
setInstallationDescriptorExtension(DocumentFragment extension)
Set the installation descriptor extension.
|
void |
setInstallRoot(String installRoot)
Set the installation root directory name for this component.
|
void |
setIsInstall(boolean isInstall)
Set the flag to indicate whether this is an install or an uninstall.
|
void |
setWorkspaceRoot(String workspaceRoot)
Set the workspace root directory name for this component.
|
public ComponentInstallationContext(String componentName, int componentType, String className, List classPathElements, DocumentFragment extensionData)
componentName - the unique component name.componentType - the type of this component - either BINDING or
ENGINE.className - the name of the class the implements the
javax.jbi.component.Component interface for this component.classPathElements - the list of elements that comprise the
runtime class path for this component. NOTE: The elements in this list
are relative paths based off the component's install root.extensionData - the DOM document fragment representing the contents
of the installation descriptor extension from the jbi.xml file.public List getClassPathElements()
getClassPathElements in interface InstallationContextpublic String getComponentClassName()
getComponentClassName in interface InstallationContextpublic String getComponentName()
getComponentName in interface InstallationContextpublic ComponentContext getContext()
getContext in interface InstallationContextpublic DocumentFragment getInstallationDescriptorExtension()
getInstallationDescriptorExtension in interface InstallationContextpublic String getInstallRoot()
getInstallRoot in interface InstallationContextpublic boolean isInstall()
isInstall in interface InstallationContextpublic void setClassPathElements(List classPathElements)
setClassPathElements in interface InstallationContextclassPathElements - a list of String objects containing class path
elements.public List getAbsoluteClassPathElements()
public String getDescription()
public String getWorkspaceRoot()
public boolean isBinding()
public boolean isBootstrapClassLoaderSelfFirst()
public boolean isComponentClassLoaderSelfFirst()
public boolean isEngine()
public void setContext(ComponentContext context)
context - the component context.public void setBootstrapClassLoaderSelfFirst()
public void setComponentClassLoaderSelfFirst()
public void setComponentClassName(String name)
name - the component class name of this component.public void setComponentName(String name)
name - the name of this component.public void setDescription(String description)
description - the description of this component.public void setInstallationDescriptorExtension(DocumentFragment extension)
extension - the extension portion of the component's installation
descriptor.public void setInstallRoot(String installRoot)
installRoot - the installation root directory name.public void setIsInstall(boolean isInstall)
isInstall - is true for an install, false for an uninstall.public void setWorkspaceRoot(String workspaceRoot)
workspaceRoot - the workspace root directory name.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.