Java Doc for ResourceRegistry.java in  » Workflow-Engines » Bossa » com » bigbross » bossa » resource » 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 » Workflow Engines » Bossa » com.bigbross.bossa.resource 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bigbross.bossa.resource.ResourceRegistry

All known Subclasses:   com.bigbross.bossa.resource.ResourceManager,
ResourceRegistry
public class ResourceRegistry implements Serializable(Code)
This class stores registered resources.


author:
   BigBross Team




Constructor Summary
public  ResourceRegistry(String id)
     Creates a new empty resource registry.

Method Summary
public  Expressioncompile(String expression)
     Compiles a resource expression.
public  ResourcecreateResource(String id)
     Creates a new resource in this registry.
public  ResourcecreateResourceImpl(String id, boolean notify)
     Creates a new resource in this registry.
 BossagetBossa()
     Returns the bossa engine this resource registry is part, if any.
 StringgetGlobalId()
     Returns the global id of this registry.
public  StringgetId()
     Returns the id of this registry.
public  ResourcegetResource(String id)
     Returns the resource with the given id.
 ResourceManagergetResourceManager()
     Returns the top level resource registry, the resource manager.
public  ListgetResources()
     Returns all registered resources.
 ResourceRegistrygetSubContext(String id)
     Returns the registered sub context with the given id.
public  ResourceRegistrygetSuperContext()
     Returns the super context of this registry.
public  booleanregisterSubContext(ResourceRegistry context)
     Registers another resource registry as a sub context of this resource registry.
public  booleanremoveResource(Resource resource)
     Removes a resource from this registry.
public  booleanremoveResourceImpl(Resource resource, boolean notify)
     Removes a resource from this registry.
public  booleanremoveSubContext(ResourceRegistry context)
     Remove the provided registry from the list of registered sub contexts of this registry.
public  voidsetSuperContext(ResourceRegistry context)
     Sets a context as the super context of this registry.


Constructor Detail
ResourceRegistry
public ResourceRegistry(String id)(Code)
Creates a new empty resource registry.


Parameters:
  id - the id of this registry.





Method Detail
compile
public Expression compile(String expression)(Code)
Compiles a resource expression.

It uses this ResourceManager to link the resources in the expression.
Parameters:
  expression - the resource expression to be compiled. a Expression representing the compiled resourceexpression.




createResource
public Resource createResource(String id) throws BossaException(Code)
Creates a new resource in this registry.


Parameters:
  id - the id of the resource to be created. the created Resource object,null if there is already a resource with this id.
exception:
  PersistenceException - if an error occours when making theexecution of this method persistent.




createResourceImpl
public Resource createResourceImpl(String id, boolean notify)(Code)
Creates a new resource in this registry.

This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.


Parameters:
  id - the id of the resource to be created.
Parameters:
  notify - if this operation should be notified. the created Resource object,null if there is already a resource with this id.




getBossa
Bossa getBossa()(Code)
Returns the bossa engine this resource registry is part, if any.

the bossa engine this resource registry is part,null if not part of a bossa engine.




getGlobalId
String getGlobalId()(Code)
Returns the global id of this registry. This is the id that allows the retrieval of this registry from the resource manager.

the resource manager.




getId
public String getId()(Code)
Returns the id of this registry.

the id of this registry.




getResource
public Resource getResource(String id)(Code)
Returns the resource with the given id.


Parameters:
  id - the resource id. the Resource object,null if there is no resource with this id.




getResourceManager
ResourceManager getResourceManager()(Code)
Returns the top level resource registry, the resource manager.

the resource manager, null if the root registryis not a resource manager.




getResources
public List getResources()(Code)
Returns all registered resources.

a list of all resources registered.




getSubContext
ResourceRegistry getSubContext(String id)(Code)
Returns the registered sub context with the given id.


Parameters:
  id - the sub context id. the sub context,null if the sub context was not found.




getSuperContext
public ResourceRegistry getSuperContext()(Code)
Returns the super context of this registry.

the super context of this registry.




registerSubContext
public boolean registerSubContext(ResourceRegistry context)(Code)
Registers another resource registry as a sub context of this resource registry. All entries in the sub context are expected to possibly depend on the entries of this registry, and are notified of resource removals.

Also, if this registry tree is rooted at a resource manager, the registry tree being registered is put in the global registry index.


Parameters:
  context - the sub context. true if the sub context was added,false if the sub context was already present.




removeResource
public boolean removeResource(Resource resource) throws BossaException(Code)
Removes a resource from this registry.


Parameters:
  resource - the resource to be removed. true if the resource was removed,false if the resource was not found.
exception:
  PersistenceException - if an error occours when making theexecution of this method persistent.




removeResourceImpl
public boolean removeResourceImpl(Resource resource, boolean notify)(Code)
Removes a resource from this registry.

This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.


Parameters:
  resource - the resource to be removed.
Parameters:
  notify - if this operation should be notified. true if the resource was removed,false if the resource was not found.




removeSubContext
public boolean removeSubContext(ResourceRegistry context)(Code)
Remove the provided registry from the list of registered sub contexts of this registry.

Also, if this registry tree is rooted at a resource manager, the registry tree being removed is removed from the global registry index.


Parameters:
  context - the sub context. true if the sub context was removed,false if the sub context was not found.




setSuperContext
public void setSuperContext(ResourceRegistry context)(Code)
Sets a context as the super context of this registry.


Parameters:
  context - the super context.




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.