com.ibm.xtools.patterns.framework.uml2.adapters
Class AdapterFactory
java.lang.Object
com.ibm.xtools.patterns.framework.uml2.adapters.AdapterFactory
- public class AdapterFactory
- extends Object
This adapter factory creates adapters for the various UML2 metaclass that
need helper methods wrapped around them. The interface adapted is the UML2
interfaces and the interface exposed is the adapter-specific one through the
classes, Class, Interface, Operation for example. It goes a bit beyond an
adapter since it adds additional functionality that uses the wrapped
objects. It is not a decorator or proxy since it doesn't keep and expose the
original UML2 metclass interfaces.
Eventually, decorators or proxies might be more practical than adapters
since the original UML2 metaclass interfaces are then exposed through in
addition to helper methods added with the methods in this package's classes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdapterFactory
public AdapterFactory()
createClassAdapter
public Class createClassAdapter(Class wrappedClass)
- Parameters:
wrappedClass
- class to be wrapped by adapter
- Returns:
- new class adapter to use
createInterfaceAdapter
public Interface createInterfaceAdapter(Interface wrappedInterface)
- Parameters:
wrappedInterface
- interface to be wrapped by adapter
- Returns:
- new interface adapter to use
createOperationAdapter
public Operation createOperationAdapter(Operation wrappedOperation)
- Parameters:
wrappedOperation
- operation to be wrapped by adapter
- Returns:
- new operation adapter to use
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.