| org.apache.cocoon.components.ExtendedComponentSelector
All known Subclasses: org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector, org.apache.lenya.cms.usecase.impl.UsecaseSelector, org.apache.lenya.cms.publication.ResourceTypeSelector,
ExtendedComponentSelector | public class ExtendedComponentSelector extends ExcaliburComponentSelector implements ParentAware(Code) | | An extension of ExcaliburComponentSelector that can have a parent
and accepts a wider variety of configurations.
author: Sylvain Wallez version: CVS $Id: ExtendedComponentSelector.java 433543 2006-08-22 06:22:54Z crossley $ |
defaultHint | protected String defaultHint(Code) | | The default hint
|
roleName | protected String roleName(Code) | | The role of this selector. Set in configure() .
|
roles | protected RoleManager roles(Code) | | The role manager
|
ExtendedComponentSelector | public ExtendedComponentSelector()(Code) | | Create the ComponentSelector with the Thread context ClassLoader
|
ExtendedComponentSelector | public ExtendedComponentSelector(ClassLoader loader)(Code) | | Create the ComponentSelector with a ClassLoader
|
canRelease | protected boolean canRelease(Component component)(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | Configure this selector. This is the main difference with the parent class :
|
dispose | public void dispose()(Code) | | |
getClassAttributeName | protected String getClassAttributeName()(Code) | | Get the name of the attribute giving the class name of a component.
The default here is "class", but this can be overriden in subclasses.
"class ", but can be changed by subclasses |
getComponentInstanceName | protected String getComponentInstanceName()(Code) | | Get the name for component-instance elements (i.e. components not defined
by their role shortcut. If null , any element having a 'class'
attribute will be considered as a component instance.
The default here is to return null , and subclasses can redefine
this method to return particular values.
null , but can be changed by subclasses |
getDefaultHint | public String getDefaultHint()(Code) | | Get the default hint, if any for this selector.
|
getDefaultHintAttributeName | protected String getDefaultHintAttributeName()(Code) | | Get the name of the attribute giving the default hint to use if
none is given. The default here is "default", but this can be
overriden in subclasses. If this method returns null ,
no default hint can be specified.
"default ", but can be changed by subclasses |
getRoleName | protected String getRoleName(Configuration config)(Code) | | Get the role name for this selector. This is called by configure()
to set the value of this.roleName .
the role name, or null if it couldn't be determined. |
hasComponent | public boolean hasComponent(Object hint)(Code) | | Does this selector or its parent have the given hint ?
|
hasDeclaredComponent | protected boolean hasDeclaredComponent(Object hint)(Code) | | Does this selector declare a given hint? Check is performed on the components declared for this
selector only, and not those potentially inherited from the parent selector.
Parameters: hint - the hint to check for true if this selector has the specified hint |
release | public void release(Component component)(Code) | | |
select | public Component select(Object hint) throws ComponentException(Code) | | |
setRoleManager | public void setRoleManager(RoleManager roles)(Code) | | Configure the RoleManager. Redeclared only because parent member is private.
|
|
|