org.apache.tuscany.sca.interfacedef.java.impl
Class JavaInterfaceFactoryImpl

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceFactoryImpl
All Implemented Interfaces:
JavaInterfaceFactory
Direct Known Subclasses:
DefaultJavaInterfaceFactory

public abstract class JavaInterfaceFactoryImpl
extends java.lang.Object
implements JavaInterfaceFactory

A factory for the Java model.


Constructor Summary
JavaInterfaceFactoryImpl()
           
 
Method Summary
 void addInterfaceVisitor(JavaInterfaceVisitor extension)
          Registers the given visitor.
 JavaInterface createJavaInterface()
          Creates a new Java interface model.
 JavaInterface createJavaInterface(java.lang.Class<?> interfaceClass)
          Creates a new Java interface model from an interface class.
 void createJavaInterface(JavaInterface javaInterface, java.lang.Class<?> interfaceClass)
          Creates the contents of a Java interface model from an interface class.
 JavaInterfaceContract createJavaInterfaceContract()
          Creates a new Java interface contract.
 java.util.List<JavaInterfaceVisitor> getInterfaceVisitors()
          Returns a list of interface visitors.
 void removeInterfaceVisitor(JavaInterfaceVisitor extension)
          Deregisters the given visitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaInterfaceFactoryImpl

public JavaInterfaceFactoryImpl()
Method Detail

createJavaInterface

public JavaInterface createJavaInterface()
Description copied from interface: JavaInterfaceFactory
Creates a new Java interface model.

Specified by:
createJavaInterface in interface JavaInterfaceFactory
Returns:

createJavaInterface

public JavaInterface createJavaInterface(java.lang.Class<?> interfaceClass)
                                  throws InvalidInterfaceException
Description copied from interface: JavaInterfaceFactory
Creates a new Java interface model from an interface class.

Specified by:
createJavaInterface in interface JavaInterfaceFactory
Parameters:
interfaceClass - the interface class to introspect.
Returns:
Throws:
InvalidInterfaceException

createJavaInterface

public void createJavaInterface(JavaInterface javaInterface,
                                java.lang.Class<?> interfaceClass)
                         throws InvalidInterfaceException
Description copied from interface: JavaInterfaceFactory
Creates the contents of a Java interface model from an interface class.

Specified by:
createJavaInterface in interface JavaInterfaceFactory
Parameters:
javaInterface - the Java interface model
interfaceClass - the interface class to introspect.
Throws:
InvalidInterfaceException

createJavaInterfaceContract

public JavaInterfaceContract createJavaInterfaceContract()
Description copied from interface: JavaInterfaceFactory
Creates a new Java interface contract.

Specified by:
createJavaInterfaceContract in interface JavaInterfaceFactory
Returns:

addInterfaceVisitor

public void addInterfaceVisitor(JavaInterfaceVisitor extension)
Description copied from interface: JavaInterfaceFactory
Registers the given visitor.

Specified by:
addInterfaceVisitor in interface JavaInterfaceFactory

removeInterfaceVisitor

public void removeInterfaceVisitor(JavaInterfaceVisitor extension)
Description copied from interface: JavaInterfaceFactory
Deregisters the given visitor.

Specified by:
removeInterfaceVisitor in interface JavaInterfaceFactory

getInterfaceVisitors

public java.util.List<JavaInterfaceVisitor> getInterfaceVisitors()
Description copied from interface: JavaInterfaceFactory
Returns a list of interface visitors.

Specified by:
getInterfaceVisitors in interface JavaInterfaceFactory
Returns: