xdoclet.modules.ejb.entity

Class FacadeTagsHandler


public class FacadeTagsHandler
extends EntityTagsHandler

Version:
$Revision: 1.3 $
Author:
Konstantin Pribluda (kpriblouda@yahoo.com)
xdoclet.taghandler
namespace = "EjbFacade"
created
September 8, 2002

Method Summary

String
beanPermission()
generate permission spec - inherit from bean
String
beanRef()
generate bean reference
boolean
canUseLocal()
String
entityFacadeClass()
produce class name for ejb facade
String
facadeEjbName()
prodice facade ejb name.
static String
getEntityFacadeClassFor(XClass clazz)
protected static String
getEntityFacadeClassPattern()
protected static String
getEntityFacadeEjbNamePattern()
Gets the EntityFacadeEjbNamePattern attribute of the FacadeTagsHandler class
String
getFacadeEjbNameFor(XClass clazz)
static String
getRemoteFacadeClassFor(XClass clazz)
protected static String
getRemoteFacadeClassPattern()
Gets the EntityFacadeClassPattern attribute of the CmpTagsHandler class
void
ifUseLocalInterface(String template, Properties attributes)
decide whether we have to use local interface of the bean
void
ifUseRemoteInterface(String template, Properties attributes)
decide whether we have to use remote interface of the bean
String
jndiName()
jndi name if any or default
String
localJndiName()
local jndi name if any
String
remoteFacadeClass()
String
sessionType()
provide session type
String
viewType()
provide view type for facade bean - inherit from class if not specified

Method Details

beanPermission

public String beanPermission()
            throws xdoclet.XDocletException
generate permission spec - inherit from bean
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

beanRef

public String beanRef()
            throws xdoclet.XDocletException
generate bean reference
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

canUseLocal

public boolean canUseLocal()
            throws xdoclet.XDocletException

entityFacadeClass

public String entityFacadeClass()
            throws xdoclet.XDocletException
produce class name for ejb facade
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

facadeEjbName

public String facadeEjbName()
            throws xdoclet.XDocletException
prodice facade ejb name. Default would be
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

getEntityFacadeClassFor

public static String getEntityFacadeClassFor(XClass clazz)

getEntityFacadeClassPattern

protected static String getEntityFacadeClassPattern()

getEntityFacadeEjbNamePattern

protected static String getEntityFacadeEjbNamePattern()
Gets the EntityFacadeEjbNamePattern attribute of the FacadeTagsHandler class
Returns:
The EntityFacadeEjbNamePattern value

getFacadeEjbNameFor

public String getFacadeEjbNameFor(XClass clazz)
            throws xdoclet.XDocletException

getRemoteFacadeClassFor

public static String getRemoteFacadeClassFor(XClass clazz)

getRemoteFacadeClassPattern

protected static String getRemoteFacadeClassPattern()
Gets the EntityFacadeClassPattern attribute of the CmpTagsHandler class
Returns:
The EntityFacadeClassPattern value

ifUseLocalInterface

public void ifUseLocalInterface(String template,
                                Properties attributes)
            throws xdoclet.XDocletException
decide whether we have to use local interface of the bean
Parameters:
template -
attributes -
Throws:
xdoclet.XDocletException -
doc.tag
type = "block"

ifUseRemoteInterface

public void ifUseRemoteInterface(String template,
                                 Properties attributes)
            throws xdoclet.XDocletException
decide whether we have to use remote interface of the bean
Parameters:
template -
attributes -
Throws:
xdoclet.XDocletException -
doc.tag
type = "block"

jndiName

public String jndiName()
            throws xdoclet.XDocletException
jndi name if any or default
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

localJndiName

public String localJndiName()
            throws xdoclet.XDocletException
local jndi name if any
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

remoteFacadeClass

public String remoteFacadeClass()
            throws xdoclet.XDocletException
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

sessionType

public String sessionType()
            throws xdoclet.XDocletException
provide session type
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"

viewType

public String viewType()
            throws xdoclet.XDocletException
provide view type for facade bean - inherit from class if not specified
Returns:
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"