From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../introspect/impl/HeuristicPojoProcessor.html | 424 +++++++++++++++++++++ 1 file changed, 424 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.html new file mode 100644 index 0000000000..f0cad5e109 --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicPojoProcessor.html @@ -0,0 +1,424 @@ + + + + + + +HeuristicPojoProcessor + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.implementation.java.introspect.impl +
+Class HeuristicPojoProcessor

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
+      extended by org.apache.tuscany.sca.implementation.java.introspect.impl.HeuristicPojoProcessor
+
+
+
All Implemented Interfaces:
JavaClassVisitor
+
+
+
+
public class HeuristicPojoProcessor
extends BaseJavaClassVisitor
+ + +

+Heuristically evaluates an un-annotated Java implementation type to determine + services, references, and properties according to the algorithm described in + the SCA Java Client and Implementation Model Specification

TODO + Implement:

When no service interface is annotated, need to calculate a + single service comprising all public methods that are not reference or + property injection sites. If that service can be exactly mapped to an + interface implemented by the class then the service interface will be defined + in terms of that interface. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
assemblyFactory
+  + + + + + + + + + + +
+Constructor Summary
HeuristicPojoProcessor(AssemblyFactory assemblyFactory, + JavaInterfaceFactory javaFactory) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanareUnique(JavaParameterImpl[] parameters) + +
+           
+ ReferencecreateReference(java.lang.String name, + java.lang.Class<?> paramType) + +
+           
+ ServicecreateService(java.lang.Class<?> interfaze) + +
+           
+ booleaninjectionAnnotationsPresent(java.lang.annotation.Annotation[][] annots) + +
+           
+ voidprocessCallback(java.lang.Class<?> interfaze, + Contract contract) + +
+           
+ + + + + +
+<T> void
+
visitEnd(java.lang.Class<T> clazz, + JavaImplementation type) + +
+          The final callback received when all other callbacks during evaluation of + the component implementation have been issued
+ + + + + + + +
Methods inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
visitClass, visitConstructor, visitConstructorParameter, visitField, visitMethod, visitSuperClass
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HeuristicPojoProcessor

+
+public HeuristicPojoProcessor(AssemblyFactory assemblyFactory,
+                              JavaInterfaceFactory javaFactory)
+
+
+ + + + + + + + +
+Method Detail
+ +

+visitEnd

+
+public <T> void visitEnd(java.lang.Class<T> clazz,
+                         JavaImplementation type)
+              throws IntrospectionException
+
+
Description copied from interface: JavaClassVisitor
+
The final callback received when all other callbacks during evaluation of + the component implementation have been issued +

+

+
Specified by:
visitEnd in interface JavaClassVisitor
Overrides:
visitEnd in class BaseJavaClassVisitor
+
+
+
Parameters:
clazz - the component implementation class
type - the incomplete component type associated with the + implementation class +
Throws: +
IntrospectionException - if an error is encountered while processing + metadata
+
+
+
+ +

+areUnique

+
+public boolean areUnique(JavaParameterImpl[] parameters)
+
+
+
+
+
+
+ +

+createReference

+
+public Reference createReference(java.lang.String name,
+                                 java.lang.Class<?> paramType)
+                          throws IntrospectionException
+
+
+ +
Throws: +
IntrospectionException
+
+
+
+ +

+createService

+
+public Service createService(java.lang.Class<?> interfaze)
+                      throws InvalidInterfaceException
+
+
+ +
Throws: +
InvalidInterfaceException
+
+
+
+ +

+processCallback

+
+public void processCallback(java.lang.Class<?> interfaze,
+                            Contract contract)
+                     throws InvalidServiceType
+
+
+ +
Throws: +
InvalidServiceType
+
+
+
+ +

+injectionAnnotationsPresent

+
+public boolean injectionAnnotationsPresent(java.lang.annotation.Annotation[][] annots)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3