xdoclet.modules.ejb.intf
Class LocalInterfaceSubTask
AbstractEjbCodeGeneratorSubTask
xdoclet.modules.ejb.intf.LocalInterfaceSubTask
public class LocalInterfaceSubTask
extends AbstractEjbCodeGeneratorSubTask
Generates local interfaces for EJBs.
- Ara Abrahamian (ara_e@email.com)
- display-name = "Local Interface"
name = "localinterface"
parent = "xdoclet.modules.ejb.EjbDocletTask"
DEFAULT_LOCAL_CLASS_PATTERN
public static final String DEFAULT_LOCAL_CLASS_PATTERN
DEFAULT_TEMPLATE_FILE
protected static final String DEFAULT_TEMPLATE_FILE
localClassPattern
protected String localClassPattern
A configuration parameter for specifying the local interface name pattern. By default the value is used for
deciding the local interface name. The placeholder "{0}" in the value means the current class's symbolic name
which for an EJBean is the EJB name.
LocalInterfaceSubTask
public LocalInterfaceSubTask()
engineStarted
protected void engineStarted()
throws xdoclet.XDocletException
xdoclet.XDocletException
-
getGeneratedFileName
protected String getGeneratedFileName(XClass clazz)
throws xdoclet.XDocletException
Gets the GeneratedFileName attribute of the LocalInterfaceSubTask object
clazz
- Describe what the parameter does
- The GeneratedFileName value
xdoclet.XDocletException
-
getLocalClassPattern
public String getLocalClassPattern()
Returns the configuration parameter for specifying the local interface name pattern. By default the value is used
for deciding the local interface name. The placeholder "{0}" in the value means the current class's symbolic name
which for an EJBean is the EJB name. If nothing explicitly specified by user then "{0}Local" is used by default.
- The LocalClassPattern value
matchesGenerationRules
protected boolean matchesGenerationRules(XClass clazz)
throws xdoclet.XDocletException
clazz
- Describe what the parameter does
- Describe the return value
xdoclet.XDocletException
-
- (Aslak) This needs refactoring. Nearly all matchesGenerationRules implementations
are the same!
setPattern
public void setPattern(String new_pattern)
The pattern by which the interfaces are named. The placeholder "{0}" designates the EJB name.
validateOptions
public void validateOptions()
throws xdoclet.XDocletException
Called to validate configuration parameters.
xdoclet.XDocletException
-