org.xwiki.component.descriptor
Class DefaultComponentDescriptor<T>
java.lang.Object
org.xwiki.component.descriptor.DefaultComponentRole<T>
org.xwiki.component.descriptor.DefaultComponentDescriptor<T>
- Type Parameters:
T - the type of the component role
- All Implemented Interfaces:
- ComponentDescriptor<T>, ComponentRole<T>
public class DefaultComponentDescriptor<T>
- extends DefaultComponentRole<T>
- implements ComponentDescriptor<T>
Default implementation of ComponentDescriptor.
- Since:
- 1.7M1
- Version:
- $Id$
DefaultComponentDescriptor
public DefaultComponentDescriptor()
setImplementation
public void setImplementation(Class<? extends T> implementation)
- Parameters:
implementation - the class of the component implementation
getImplementation
public Class<? extends T> getImplementation()
- Specified by:
getImplementation in interface ComponentDescriptor<T>
- Returns:
- the class of the component implementation
setInstantiationStrategy
public void setInstantiationStrategy(ComponentInstantiationStrategy instantiationStrategy)
- Parameters:
instantiationStrategy - the way the component should be instantiated- See Also:
ComponentInstantiationStrategy
getInstantiationStrategy
public ComponentInstantiationStrategy getInstantiationStrategy()
- Specified by:
getInstantiationStrategy in interface ComponentDescriptor<T>
- Returns:
- the way the component should be instantiated
- See Also:
ComponentInstantiationStrategy
getComponentDependencies
public Collection<ComponentDependency<?>> getComponentDependencies()
- Specified by:
getComponentDependencies in interface ComponentDescriptor<T>
- Returns:
- the components on which this component depends
addComponentDependency
public void addComponentDependency(ComponentDependency<?> componentDependency)
- Parameters:
componentDependency - the dependency to add
addComponentDependency
public <TT> void addComponentDependency(Class<TT> role,
String roleHint)
- Type Parameters:
TT - the type of the dependency role- Parameters:
role - the class of the component roleroleHint - the hint of the component role
toString
public String toString()
- Overrides:
toString in class DefaultComponentRole<T>
equals
public boolean equals(Object object)
-
- Overrides:
equals in class DefaultComponentRole<T>
- Since:
- 3.3M1
hashCode
public int hashCode()
-
- Overrides:
hashCode in class DefaultComponentRole<T>
- Since:
- 3.3M1
Copyright © 2004-2012 XWiki. All Rights Reserved.