|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.kernel.ServiceAdapter | +--jrunx.xdoclet.XDocletService
Implementation of the XDoclet JRun service.
This is a JRun service wrapper around the open source XDoclet project
originally created by Rickard Oberg and now maintained at SourceForge
(http://xdoclet.sourceforge.net).
This service uses a slightly-modified version of Ant in conjunction with
the lib/xdoclet.xml file and the MBean settings to generate source files,
compiled classes, and descriptors. Since Ant itself is not integrated as a JRun
service (as of the time of this writing), this service sets a handful of
System properties in order to configure Ant.
| Field Summary | |
static java.lang.String |
DEFAULT_ANT_LEVEL
|
static java.lang.String |
DEFAULT_EJB_CLASS_VAR
|
static java.lang.String |
EJB_CLASS_VAR
|
static java.lang.String |
EJB_WEBLOGIC_SUPPORT
|
static java.lang.String |
EJB_WEBSPHERE_SUPPORT
|
static java.lang.String |
XDOCLET_BUILD_DIR
|
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Fields inherited from interface jrunx.xdoclet.XDocletServiceMBean |
OBJECT_NAME |
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Constructor Summary | |
XDocletService()
|
|
| Method Summary | |
java.lang.String |
getAntMessageLevel()
Get the current value indicating the feedback noise of the ant build process. |
java.lang.String |
getEjbSourceFiles()
Get the suffix used to identify potential EJB source files that should be run through XDoclet |
long |
getPollFrequency()
Get the polling frequency, or interval at which xdoclet re-examines its sources. |
java.util.ArrayList |
getWarSourceFileList()
Get the list of web app-related suffixes that the service is employing. |
java.util.ArrayList |
getWatchedDirectoryList(boolean isEJB)
Perform the real work of getting the appopriate list of watched directories. |
java.util.ArrayList |
getWatchedEJBDirectoryList()
Get the list of watched EJB directories |
java.util.ArrayList |
getWatchedWARDirectoryList()
Get the list of watched EJB directories |
void |
handleEvent(ServerEvent event,
java.lang.Object handback)
Schedule this Runnable, which automates XDoclet invocations on watched directories |
boolean |
isWebLogicExport()
If true, WebLogic-specific EJB descriptors will be created |
boolean |
isWebSphereExport()
If true, WebSphere-specific EJB descriptors will be created |
boolean |
removeWatchedDirectory(java.lang.String path,
boolean isEJB)
Perform the real work of forgetting about a previously-watched directory. |
boolean |
removeWatchedEJBDirectory(java.lang.String path)
Remove this directory from the EJB watched directory list |
boolean |
removeWatchedWARDirectory(java.lang.String path)
Remove this directory from the WAR watched directory list |
void |
run()
The service is automated through this runnable method. |
void |
setAntMessageLevel(java.lang.String s)
Set this value to modify the feedback noise received from the ant build process. |
void |
setEjbSourceFiles(java.lang.String suffix)
Set the suffix used to identify potential EJB source files that should be run through XDoclet |
void |
setPollFrequency(long seconds)
Set the polling frequencyor interval at which xdoclet re-examines its sources. |
void |
setWarSourceFiles(java.lang.String suffix)
Add a suffix to the list of those that the service will watch for changes, where changes will fire a new WebDoclet invocation on the watched directory. |
void |
setWatchedEJBDirectory(java.lang.String path)
Monitor this directory for EJB source with doclets |
void |
setWatchedWARDirectory(java.lang.String path)
Monitor this directory for WAR source with doclets |
void |
setWebLogicExport(boolean b)
If set to true, WebLogic-specific EJB descriptors will be created |
void |
setWebSphereExport(boolean b)
If set to true, WebSphere-specific EJB descriptors will be created |
void |
start()
Register to receive server started event, at which time we use the JRun scheduler to begin periodic inspection of the watched directories. |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, stop, updateStatus |
| Field Detail |
public static final java.lang.String XDOCLET_BUILD_DIR
public static final java.lang.String EJB_CLASS_VAR
public static final java.lang.String EJB_WEBSPHERE_SUPPORT
public static final java.lang.String EJB_WEBLOGIC_SUPPORT
public static final java.lang.String DEFAULT_EJB_CLASS_VAR
public static final java.lang.String DEFAULT_ANT_LEVEL
| Constructor Detail |
public XDocletService()
| Method Detail |
public void start()
throws java.lang.Exception
start in interface Servicestart in class ServiceAdapter
public void handleEvent(ServerEvent event,
java.lang.Object handback)
handleEvent in interface ServerEventListenerjrunx.kernel.ServerEventListenerevent - The server eventhandback - The object handback supplied when the listener was registeredpublic void run()
run in interface java.lang.Runnablepublic void setWatchedEJBDirectory(java.lang.String path)
setWatchedEJBDirectory in interface XDocletServiceMBeanpublic void setWatchedWARDirectory(java.lang.String path)
setWatchedWARDirectory in interface XDocletServiceMBeanpublic java.util.ArrayList getWatchedEJBDirectoryList()
getWatchedEJBDirectoryList in interface XDocletServiceMBeanpublic java.util.ArrayList getWatchedWARDirectoryList()
getWatchedWARDirectoryList in interface XDocletServiceMBeanpublic java.util.ArrayList getWatchedDirectoryList(boolean isEJB)
public boolean removeWatchedEJBDirectory(java.lang.String path)
removeWatchedEJBDirectory in interface XDocletServiceMBeanpublic boolean removeWatchedWARDirectory(java.lang.String path)
removeWatchedWARDirectory in interface XDocletServiceMBean
public boolean removeWatchedDirectory(java.lang.String path,
boolean isEJB)
public long getPollFrequency()
getPollFrequency in interface XDocletServiceMBeanpublic void setPollFrequency(long seconds)
setPollFrequency in interface XDocletServiceMBeanpublic void setEjbSourceFiles(java.lang.String suffix)
setEjbSourceFiles in interface XDocletServiceMBeanpublic java.lang.String getEjbSourceFiles()
getEjbSourceFiles in interface XDocletServiceMBeanpublic void setWarSourceFiles(java.lang.String suffix)
setWarSourceFiles in interface XDocletServiceMBeanpublic java.util.ArrayList getWarSourceFileList()
getWarSourceFileList in interface XDocletServiceMBeanpublic boolean isWebLogicExport()
isWebLogicExport in interface XDocletServiceMBeanpublic void setWebLogicExport(boolean b)
setWebLogicExport in interface XDocletServiceMBeanpublic boolean isWebSphereExport()
isWebSphereExport in interface XDocletServiceMBeanpublic void setWebSphereExport(boolean b)
setWebSphereExport in interface XDocletServiceMBeanpublic java.lang.String getAntMessageLevel()
getAntMessageLevel in interface XDocletServiceMBeanpublic void setAntMessageLevel(java.lang.String s)
setAntMessageLevel in interface XDocletServiceMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||