Package com.bc.ceres.core
Interface ExtensionFactory
- All Known Implementing Classes:
SingleTypeExtensionFactory
public interface ExtensionFactory
A factory providing runtime extensions for a given object.
- Version:
- $Revision$ $Date$
-
Method Summary
Modifier and TypeMethodDescriptiongetExtension
(Object object, Class<?> extensionType) Gets an instance of an extension type for the specified object.Class<?>[]
-
Method Details
-
getExtension
Gets an instance of an extension type for the specified object.- Parameters:
object
- The object.extensionType
- The type of the requested extension.- Returns:
- The extension instance, or
null
if the given object is not extensible by this factory.
-
getExtensionTypes
Class<?>[] getExtensionTypes()- Returns:
- The array of extension types supported by this factory.
-