|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.component.repository.ComponentDescriptor<T>
public class ComponentDescriptor<T>
Component instantiation description.
| Constructor Summary | |
|---|---|
ComponentDescriptor()
|
|
ComponentDescriptor(Class<T> implementationClass,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
|
|
| Method Summary | |
|---|---|
void |
addRequirement(ComponentRequirement... requirement)
Add a project requirement to this component. |
void |
addRequirement(ComponentRequirement requirement)
Add a project requirement to this component. |
void |
addRequirements(List<ComponentRequirement> requirements)
Adds a list of requirements to this component. |
boolean |
equals(Object other)
|
String |
getAlias()
Returns an alias for this component. |
String |
getComponentComposer()
Returns the ID of the type of composer this component will use. |
String |
getComponentConfigurator()
Returns the type of component configurator for this project. |
String |
getComponentFactory()
Returns an id of the factory used to create this component. |
String |
getComponentProfile()
|
ComponentSetDescriptor |
getComponentSetDescriptor()
Returns the component set descriptor. |
String |
getComponentType()
Returns the type of this component. |
PlexusConfiguration |
getConfiguration()
Returns configuration values defined for this component. |
String |
getDescription()
Return a human-readable description of this component. |
String |
getHumanReadableKey()
Returns a human-friendly key, suitable for display. |
String |
getImplementation()
Returns the implementation of this componet. |
Class<? extends T> |
getImplementationClass()
Returns the implementation class of this componet, or null if the implementation class can not be loaded. |
String |
getInstantiationStrategy()
Returns the type of instantiation strategy for this component. |
String |
getLifecycleHandler()
Returns the lifecycle-handler for this component. |
org.codehaus.plexus.classworlds.realm.ClassRealm |
getRealm()
The ClassRealm that this component lives under. |
List<ComponentRequirement> |
getRequirements()
Returns all project requirements of this component. |
String |
getRole()
Returns the role of this component. |
Class<T> |
getRoleClass()
|
String |
getRoleHint()
Returns the role-hint of this component. |
String |
getSource()
The location this information came from (descriptor file URI). |
String |
getVersion()
Returns a specific point in a components's project timeline. |
boolean |
hasConfiguration()
Returns true if this component has a configuration. |
int |
hashCode()
|
boolean |
isIsolatedRealm()
Returns true if this may be in an isolated classrealm. |
void |
removeRequirement(ComponentRequirement... requirement)
Remove a project requirement from this component. |
void |
removeRequirements(List<ComponentRequirement> requirements)
Removes a list of requirements from this component. |
void |
setAlias(String alias)
Sets the alias for this component. |
void |
setComponentComposer(String componentComposer)
Sets a representation of the composer this component uses. |
void |
setComponentConfigurator(String componentConfigurator)
Sets the type of component configurator for this project. |
void |
setComponentFactory(String componentFactory)
Sets the id of the factory to use to create this component. |
void |
setComponentProfile(String componentProfile)
|
void |
setComponentSetDescriptor(ComponentSetDescriptor componentSetDescriptor)
Sets the component set descriptor of components and dependencies for this component. |
void |
setComponentType(String componentType)
Sets this component's type. |
void |
setConfiguration(PlexusConfiguration configuration)
Sets the configuration hierarchy for this component. |
void |
setDescription(String description)
Sets a description of this component for users to read. |
void |
setImplementation(String implementation)
Sets the implementation of this componet. |
void |
setImplementationClass(Class<? extends T> implementationClass)
|
void |
setInstantiationStrategy(String instantiationStrategy)
Sets the instantiation-strategy for this component. |
void |
setIsolatedRealm(boolean isolatedRealm)
Sets that this component may be in an isolated classrealm. |
void |
setLifecycleHandler(String lifecycleHandler)
Sets the lifecycle-handler for this component. |
void |
setRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Set the ClassRealm that this component lives under. |
void |
setRole(String role)
Sets the role of this component. |
void |
setRoleClass(Class<T> roleClass)
|
void |
setRoleHint(String roleHint)
Sets the role-hint of this component. |
void |
setSource(String source)
The location this information came from (descriptor file URI). |
void |
setVersion(String version)
Sets the point in a components's project development timeline |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentDescriptor()
public ComponentDescriptor(Class<T> implementationClass,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
| Method Detail |
|---|
public void setSource(String source)
public String getSource()
public String getHumanReadableKey()
public String getAlias()
public void setAlias(String alias)
alias - alternate name to setpublic String getRole()
public Class<T> getRoleClass()
public void setRole(String role)
role - this component's rolepublic void setRoleClass(Class<T> roleClass)
public String getRoleHint()
public void setRoleHint(String roleHint)
roleHint - this component's role-hintpublic String getImplementation()
public void setImplementation(String implementation)
implementation - string denoting a FQCN in normal Java components, or some other name or file for other
component factory implementationspublic Class<? extends T> getImplementationClass()
public void setImplementationClass(Class<? extends T> implementationClass)
public String getVersion()
public void setVersion(String version)
version - the components's versionpublic String getComponentType()
public void setComponentType(String componentType)
componentType - the type to setpublic String getInstantiationStrategy()
public PlexusConfiguration getConfiguration()
public void setConfiguration(PlexusConfiguration configuration)
configuration - the configuration hierarchy to setpublic boolean hasConfiguration()
public String getLifecycleHandler()
public void setLifecycleHandler(String lifecycleHandler)
lifecycleHandler - the lifecycle handler string to setpublic String getComponentProfile()
public void setComponentProfile(String componentProfile)
public void addRequirement(ComponentRequirement requirement)
requirement - the requirement to addpublic void addRequirement(ComponentRequirement... requirement)
requirement - the requirement to addpublic void addRequirements(List<ComponentRequirement> requirements)
requirements - the requirements to addpublic void removeRequirement(ComponentRequirement... requirement)
requirement - the requirement to removepublic void removeRequirements(List<ComponentRequirement> requirements)
requirements - the requirements to removepublic List<ComponentRequirement> getRequirements()
public String getComponentFactory()
public void setComponentFactory(String componentFactory)
componentFactory - public String getComponentComposer()
public void setComponentComposer(String componentComposer)
componentComposer - string representation of the composer to usepublic String getDescription()
public void setDescription(String description)
description - a human-readable description of this componentpublic void setInstantiationStrategy(String instantiationStrategy)
instantiationStrategy - public boolean isIsolatedRealm()
public void setComponentSetDescriptor(ComponentSetDescriptor componentSetDescriptor)
componentSetDescriptor - the component set descriptor of components and dependenciespublic ComponentSetDescriptor getComponentSetDescriptor()
public void setIsolatedRealm(boolean isolatedRealm)
isolatedRealm - true if this component may be in an isolated classrealmpublic String getComponentConfigurator()
public void setComponentConfigurator(String componentConfigurator)
componentConfigurator - public org.codehaus.plexus.classworlds.realm.ClassRealm getRealm()
public void setRealm(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
realm - the ClassRealm that this component lives underpublic String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||