org.favabeans.base
Interface FacetFactory
- All Known Implementing Classes:
- SimpleFacetFactory
- public interface FacetFactory
A FacetFactory is responsible for creating
Facet objects for a given Type of primary
objects.
|
Method Summary |
Facet |
newFacet(Object primaryObject,
Type primaryObjectType,
Type facetType)
Create a new Facet for a given primary object. |
newFacet
public Facet newFacet(Object primaryObject,
Type primaryObjectType,
Type facetType)
throws FactoryException
- Create a new
Facet for a given primary object.
- Parameters:
primaryObject - the primary object for the
Facet to be created.primaryObjectType - the Type of the primary
object, as determined by the caller of this method.facetType - the returned Facet is required to
be an instance of this Type.- Returns:
- a new
Facet - Throws:
FactoryException - if the Facet could not
be constructed.
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.