Java Doc for Module.java in  » J2EE » jfox » org » jfox » framework » component » 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 » J2EE » jfox » org.jfox.framework.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfox.framework.component.Module

All known Subclasses:   org.jfox.framework.component.SystemModule,
Module
public class Module implements Comparable<Module>(Code)

author:
   Young Yang

Inner Class :public static enum STATUS

Field Summary
protected  ModuleClassLoaderclassLoader
    
protected  Frameworkframework
    
final protected  Loggerlogger
    
protected  FilemoduleDir
    

Constructor Summary
public  Module(Framework framework, File file)
    

Method Summary
public  intcompareTo(Module o)
    
public  voiddestroy()
    
public  Collection<T>findComponentByInterface(Class<T> interfaceClass)
    
public  Collection<T>findComponentByInterface(Class<T> interfaceClass, String moduleName)
    
public  Collection<ComponentMeta>getAllComponentMetas()
    
public  URL[]getClasspathURLs()
    
public  ComponentgetComponent(ComponentId componentId)
    
public  ComponentgetComponent(String componentId)
    
 ComponentMetagetComponentMeta(ComponentId componentId)
    
public  StringgetDescription()
    
public  URLgetDescriptorURL()
    
public  FrameworkgetFramework()
    
public  ModuleClassLoadergetModuleClassLoader()
    
public  FilegetModuleDir()
    
public  StringgetName()
    
public  intgetPriority()
    
public  String[]getRefModules()
    
protected  ModuleClassLoaderinitModuleClassLoader()
    
protected  voidinstantiateActiveComponent()
    
public  booleanisComponentExported(ComponentId id)
    
public  booleanisComponentLoaded(ComponentId id)
    
public  ComponentMetaloadComponent(Class<? extends Component> implementataionClass)
    
public static  voidmain(String[] args)
    
protected  voidpreActiveComponent()
    
public  ComponentMetareloadComponent(Class<? extends Component> implementationClass)
    
protected  voidresolve()
    
protected  voidsetDescription(String description)
    
protected  voidsetName(String name)
    
protected  voidsetPriority(int priority)
    
public  voidstart()
    
public  voidstop()
    
public  StringtoString()
    
public  voidunload()
    
public  booleanunloadComponent(ComponentId id)
    
 voidunregisterComponent(ComponentId id)
    

Field Detail
classLoader
protected ModuleClassLoader classLoader(Code)



framework
protected Framework framework(Code)



logger
final protected Logger logger(Code)



moduleDir
protected File moduleDir(Code)
模�的文件,或者目录




Constructor Detail
Module
public Module(Framework framework, File file) throws ModuleResolvedFailedException(Code)




Method Detail
compareTo
public int compareTo(Module o)(Code)



destroy
public void destroy() throws Exception(Code)



findComponentByInterface
public Collection<T> findComponentByInterface(Class<T> interfaceClass)(Code)



findComponentByInterface
public Collection<T> findComponentByInterface(Class<T> interfaceClass, String moduleName)(Code)



getAllComponentMetas
public Collection<ComponentMeta> getAllComponentMetas()(Code)



getClasspathURLs
public URL[] getClasspathURLs()(Code)
获�所有�加入到 MODULE classpath 的 url Module classpath urls



getComponent
public Component getComponent(ComponentId componentId) throws ComponentNotFoundException, ComponentNotExportedException(Code)
获得该模�内的 Component 实例
Parameters:
  componentId - componentId
throws:
  ComponentNotFoundException - if not found the component or component instantiate failed
throws:
  ComponentNotExportedException - if found component in other module, but it is not exported



getComponent
public Component getComponent(String componentId) throws ComponentNotFoundException, ComponentNotExportedException(Code)



getComponentMeta
ComponentMeta getComponentMeta(ComponentId componentId) throws ComponentNotFoundException, ComponentNotExportedException(Code)



getDescription
public String getDescription()(Code)



getDescriptorURL
public URL getDescriptorURL()(Code)
获得模��置文件 xml descriptor URL



getFramework
public Framework getFramework()(Code)



getModuleClassLoader
public ModuleClassLoader getModuleClassLoader()(Code)



getModuleDir
public File getModuleDir()(Code)



getName
public String getName()(Code)



getPriority
public int getPriority()(Code)



getRefModules
public String[] getRefModules()(Code)



initModuleClassLoader
protected ModuleClassLoader initModuleClassLoader()(Code)



instantiateActiveComponent
protected void instantiateActiveComponent() throws ComponentInstantiateException(Code)



isComponentExported
public boolean isComponentExported(ComponentId id)(Code)
组件是å?¦å¯¹å¤–å?‘布,使用了 @Expose æ??述的组件是å?¯å?‘布组件,以其接å?£å?‘布出æ?¥
Parameters:
  id - component id



isComponentLoaded
public boolean isComponentLoaded(ComponentId id)(Code)



loadComponent
public ComponentMeta loadComponent(Class<? extends Component> implementataionClass) throws ComponentResolvedFailedException(Code)



main
public static void main(String[] args)(Code)



preActiveComponent
protected void preActiveComponent()(Code)



reloadComponent
public ComponentMeta reloadComponent(Class<? extends Component> implementationClass)(Code)
reload a component
Parameters:
  implementationClass - component implementation class



resolve
protected void resolve() throws ModuleResolvedFailedException(Code)
�始化,only 装载�置文件,�解�
throws:
  ModuleResolvedFailedException - 解æž?失败,比如,XMLä¸?符å?ˆè§„范,抛出该异常



setDescription
protected void setDescription(String description)(Code)



setName
protected void setName(String name)(Code)



setPriority
protected void setPriority(int priority)(Code)



start
public void start() throws Exception(Code)
解�模�,export class, 装载组件
throws:
  Exception - any exception



stop
public void stop() throws Exception(Code)



toString
public String toString()(Code)



unload
public void unload()(Code)
销�整个模�, unload all components



unloadComponent
public boolean unloadComponent(ComponentId id) throws ComponentNotFoundException(Code)
�载一个Component
Parameters:
  id - component id
throws:
  ComponentNotFoundException - not found component



unregisterComponent
void unregisterComponent(ComponentId id) throws ComponentNotFoundException(Code)
由 ComponentMeta 回调
Parameters:
  id - component id
throws:
  ComponentNotFoundException - if component not found



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.