Java Doc for SubDeployerSupport.java in  » EJB-Server-JBoss-4.2.1 » system » org » jboss » deployment » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » system » org.jboss.deployment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.system.ServiceMBeanSupport
   org.jboss.deployment.SubDeployerSupport

All known Subclasses:   org.jboss.deployment.SARDeployer,  org.jboss.deployment.XSLSubDeployer,  org.jboss.deployment.SimpleSubDeployerSupport,  org.jboss.deployment.JARDeployer,
SubDeployerSupport
abstract public class SubDeployerSupport extends ServiceMBeanSupport implements SubDeployerExt,SubDeployerExtMBean(Code)
An abstract SubDeployer . Provides registration with MainDeployer as well as implementations of init, create, start, stop and destroy that generate JMX notifications on completion of the method.
version:
   $Revision: 57205 $
author:
   Jason Dillon
author:
   Scott Stark
author:
   Dimitris Andreadis

Inner Class :protected static class ClassConfiguration extends org.jboss.util.property.PropertyContainer

Field Summary
final protected static  ClassConfigurationCONFIGURATION
     The singleton class configuration object for this class.
protected  String[]enhancedSuffixes
    
protected  MainDeployerMBeanmainDeployer
     A proxy to the MainDeployer.
final protected static  StringnativePrefix
     Holds the native library prefix for this system.
final protected static  StringnativeSuffix
     Holds the native library suffix for this system.
protected  intrelativeOrder
    
protected  String[]suffixes
    
protected  FiletempDeployDir
    


Method Summary
public  booleanaccepts(DeploymentInfo sdi)
     A default implementation that uses the suffixes registered through either setSuffixes() or setEnhancedSuffixes(), to decide if a module is deployable by this deployer.
protected  voidaddDeployableFiles(DeploymentInfo di, File dir)
     This method recursively searches the directory structure for any files that are deployable (@see isDeployable).
protected  voidaddDeployableJar(DeploymentInfo di, JarFile jarFile)
     This method searches the entire jar file for any deployable files (@see isDeployable).
public  voidcreate(DeploymentInfo di)
     Sub-classes should override this method to provide custom 'create' logic.
protected  voidcreateService()
     The createService method is one of the ServiceMBean lifecyle operations.
protected  voiddeployUrl(DeploymentInfo di, URL url, String name)
    
public  voiddestroy(DeploymentInfo di)
     Sub-classes should override this method to provide custom 'destroy' logic.
protected  voiddestroyService()
     Clean up.
protected  voidemitNotification(String type, DeploymentInfo di)
    
public  String[]getEnhancedSuffixes()
    
public  intgetRelativeOrder()
    
public  String[]getSuffixes()
    
public  voidinit(DeploymentInfo di)
     Sub-classes should override this method to provide custom 'init' logic.

This method calls the processNestedDeployments(di) method and then issues a JMX notification of type SubDeployer.INIT_NOTIFICATION. This behaviour can overridden by concrete sub-classes.

protected  booleanisDeployable(String name, URL url)
     This method returns true if the name is a recognized archive file. It will query the MainDeployer that keeps a dynamically updated list of known archive extensions.
protected  voidprocessNestedDeployments(DeploymentInfo di)
     The processNestedDeployments method searches for any nested and deployable elements.
public  voidsetEnhancedSuffixes(String[] enhancedSuffixes)
     Set the enhanced suffixes list for this deployer, causing also the supported suffixes list to be updated. Each enhanced suffix entries has the form: [order:]suffix No need to register twice suffixes that may refer to unpacked deployments (e.g.
protected  voidsetRelativeOrder(int relativeOrder)
     Set the relative order of the specified suffixes all to the same value.
protected  voidsetSuffixes(String[] suffixes)
     Set an array of suffixes of interest to this subdeployer. No need to register twice suffixes that may refer to unpacked deployments (e.g.
public  voidstart(DeploymentInfo di)
     Sub-classes should override this method to provide custom 'start' logic.
protected  voidstartService()
     Performs SubDeployer registration.
public  voidstop(DeploymentInfo di)
     Sub-classes should override this method to provide custom 'stop' logic.
protected  voidstopService()
     Performs SubDeployer deregistration.

Field Detail
CONFIGURATION
final protected static ClassConfiguration CONFIGURATION(Code)
The singleton class configuration object for this class.



enhancedSuffixes
protected String[] enhancedSuffixes(Code)
The list of enhancedSuffixes for this subdeployer



mainDeployer
protected MainDeployerMBean mainDeployer(Code)
A proxy to the MainDeployer.



nativePrefix
final protected static String nativePrefix(Code)
Holds the native library prefix for this system.
See Also:   SubDeployerSupport.nativeSuffix



nativeSuffix
final protected static String nativeSuffix(Code)
Holds the native library suffix for this system. Determined by examining the result of System.mapLibraryName(specialToken). The special token defaults to "XxX", but can be changed by setting the system property: org.jboss.deployment.SubDeployerSupport.nativeLibToken.



relativeOrder
protected int relativeOrder(Code)
The relative order of this subdeployer - not really used



suffixes
protected String[] suffixes(Code)
The suffixes of interest to this subdeployer



tempDeployDir
protected File tempDeployDir(Code)
The temporary directory into which deployments are unpacked





Method Detail
accepts
public boolean accepts(DeploymentInfo sdi)(Code)
A default implementation that uses the suffixes registered through either setSuffixes() or setEnhancedSuffixes(), to decide if a module is deployable by this deployer. If (according to DeploymentInfo) the deployment refers to a directory, but not an xml or script deployment, then the deployment suffix will be checked also against the registered suffixes + "/".
Parameters:
  sdi - the DeploymentInfo to check whether the deployer can handle the deployment



addDeployableFiles
protected void addDeployableFiles(DeploymentInfo di, File dir) throws DeploymentException(Code)
This method recursively searches the directory structure for any files that are deployable (@see isDeployable). If a directory is found to be deployable, then its subfiles and subdirectories are not searched.
Parameters:
  di - the DeploymentInfo
Parameters:
  dir - The root directory to start searching.



addDeployableJar
protected void addDeployableJar(DeploymentInfo di, JarFile jarFile) throws DeploymentException(Code)
This method searches the entire jar file for any deployable files (@see isDeployable).
Parameters:
  di - the DeploymentInfo
Parameters:
  jarFile - the jar file to process.



create
public void create(DeploymentInfo di) throws DeploymentException(Code)
Sub-classes should override this method to provide custom 'create' logic. This method issues a JMX notification of type SubDeployer.CREATE_NOTIFICATION.



createService
protected void createService() throws Exception(Code)
The createService method is one of the ServiceMBean lifecyle operations. (no jmx tag needed from superinterface)
exception:
  Exception - if an error occurs



deployUrl
protected void deployUrl(DeploymentInfo di, URL url, String name) throws DeploymentException(Code)



destroy
public void destroy(DeploymentInfo di) throws DeploymentException(Code)
Sub-classes should override this method to provide custom 'destroy' logic. This method issues a JMX notification of type SubDeployer.DESTROY_NOTIFICATION.



destroyService
protected void destroyService() throws Exception(Code)
Clean up.



emitNotification
protected void emitNotification(String type, DeploymentInfo di)(Code)
Simple helper to emit a subdeployer notification containing DeploymentInfo



getEnhancedSuffixes
public String[] getEnhancedSuffixes()(Code)
Get an array of enhancedSuffixes array of enhanced suffix strings



getRelativeOrder
public int getRelativeOrder()(Code)
Get the relative order of the specified suffixes the relative order of the specified suffixes



getSuffixes
public String[] getSuffixes()(Code)
Get an array of suffixes of interest to this subdeployer array of suffix strings



init
public void init(DeploymentInfo di) throws DeploymentException(Code)
Sub-classes should override this method to provide custom 'init' logic.

This method calls the processNestedDeployments(di) method and then issues a JMX notification of type SubDeployer.INIT_NOTIFICATION. This behaviour can overridden by concrete sub-classes. If further initialization needs to be done, and you wish to preserve the functionality, be sure to call super.init(di) at the end of your implementation.




isDeployable
protected boolean isDeployable(String name, URL url)(Code)
This method returns true if the name is a recognized archive file. It will query the MainDeployer that keeps a dynamically updated list of known archive extensions.
Parameters:
  name - The "short-name" of the URL. It will have any trailing '/'characters removed, and any directory structure has been removed.
Parameters:
  url - The full url. true iff the name ends in a known archive extension: .jar, .sar,.ear, .rar, .zip, .wsr, .war, or if the name matches the nativelibrary conventions.



processNestedDeployments
protected void processNestedDeployments(DeploymentInfo di) throws DeploymentException(Code)
The processNestedDeployments method searches for any nested and deployable elements. Only Directories and Zipped archives are processed, and those are delegated to the addDeployableFiles and addDeployableJar methods respectively. This method can be overridden for alternate behaviour.



setEnhancedSuffixes
public void setEnhancedSuffixes(String[] enhancedSuffixes)(Code)
Set the enhanced suffixes list for this deployer, causing also the supported suffixes list to be updated. Each enhanced suffix entries has the form: [order:]suffix No need to register twice suffixes that may refer to unpacked deployments (e.g. .sar, .sar/).
Parameters:
  enhancedSuffixes -



setRelativeOrder
protected void setRelativeOrder(int relativeOrder)(Code)
Set the relative order of the specified suffixes all to the same value.
Parameters:
  relativeOrder - the relative order of the specified suffixes



setSuffixes
protected void setSuffixes(String[] suffixes)(Code)
Set an array of suffixes of interest to this subdeployer. No need to register twice suffixes that may refer to unpacked deployments (e.g. .sar, .sar/).
Parameters:
  suffixes - array of suffix strings



start
public void start(DeploymentInfo di) throws DeploymentException(Code)
Sub-classes should override this method to provide custom 'start' logic. This method issues a JMX notification of type SubDeployer.START_NOTIFICATION.



startService
protected void startService() throws Exception(Code)
Performs SubDeployer registration.



stop
public void stop(DeploymentInfo di) throws DeploymentException(Code)
Sub-classes should override this method to provide custom 'stop' logic. This method issues a JMX notification of type SubDeployer.START_NOTIFICATION.



stopService
protected void stopService() throws Exception(Code)
Performs SubDeployer deregistration.



Fields inherited from org.jboss.system.ServiceMBeanSupport
final public static String[] SERVICE_CONTROLLER_SIG(Code)(Java Doc)
protected Logger log(Code)(Java Doc)
protected MBeanServer server(Code)(Java Doc)
protected ObjectName serviceName(Code)(Java Doc)

Methods inherited from org.jboss.system.ServiceMBeanSupport
public void create() throws Exception(Code)(Java Doc)
protected void createService() throws Exception(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected void destroyService() throws Exception(Code)(Java Doc)
public DeploymentInfo getDeploymentInfo() throws JMException(Code)(Java Doc)
public Logger getLog()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected long getNextNotificationSequenceNumber()(Code)(Java Doc)
protected ObjectName getObjectName(MBeanServer server, ObjectName name) throws MalformedObjectNameException(Code)(Java Doc)
public MBeanServer getServer()(Code)(Java Doc)
public ObjectName getServiceName()(Code)(Java Doc)
public int getState()(Code)(Java Doc)
public String getStateString()(Code)(Java Doc)
protected void jbossInternalCreate() throws Exception(Code)(Java Doc)
protected String jbossInternalDescription()(Code)(Java Doc)
protected void jbossInternalDestroy()(Code)(Java Doc)
public void jbossInternalLifecycle(String method) throws Exception(Code)(Java Doc)
protected void jbossInternalStart() throws Exception(Code)(Java Doc)
protected void jbossInternalStop()(Code)(Java Doc)
public void postDeregister()(Code)(Java Doc)
public void postRegister(Boolean registrationDone)(Code)(Java Doc)
public void preDeregister() throws Exception(Code)(Java Doc)
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
public void start() throws Exception(Code)(Java Doc)
protected void startService() throws Exception(Code)(Java Doc)
public void stop()(Code)(Java Doc)
protected void stopService() throws Exception(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.