net.sourceforge.jfacets
Interface IFacetRepository

All Known Implementing Classes:
FacetRepositoryImpl

public interface IFacetRepository

Interface of the FacetRepository.

Author:
Remi VANKEISBELCK - rvkb.com (remi 'at' rvkb.com)

Method Summary
 FacetDescriptor[] getDescriptors(IProfile profile, java.lang.Class targetObjectType)
          Return all the facet descriptors that match passed profile and object type, handling inheritance.
 java.lang.Object getFacet(java.lang.String name, IProfile profile, java.lang.Object targetObject)
          Method for retrieving facets.
 java.lang.Object getFacet(java.lang.String name, IProfile profile, java.lang.Object targetObject, java.lang.Class targetObjectType)
          Method for retrieving facets.
 IFacetContextFactory getFacetContextFactory()
          Return the FacetContextFactory
 IFacetDescriptorManager getFacetDescriptorManager()
          Return the FacetDescriptorManager
 IFacetFactory getFacetFactory()
          Return the FacetFactory
 IProfileRepository getProfileRepository()
          Return the ProfileRepository
 

Method Detail

getProfileRepository

IProfileRepository getProfileRepository()
Return the ProfileRepository


getFacetFactory

IFacetFactory getFacetFactory()
Return the FacetFactory


getFacetContextFactory

IFacetContextFactory getFacetContextFactory()
Return the FacetContextFactory


getFacetDescriptorManager

IFacetDescriptorManager getFacetDescriptorManager()
Return the FacetDescriptorManager


getFacet

java.lang.Object getFacet(java.lang.String name,
                          IProfile profile,
                          java.lang.Object targetObject)
Method for retrieving facets. Uses targetObject's run-time type.

Returns:
the facet (with assigned context if implementing IFacet) if found, null if not found

getFacet

java.lang.Object getFacet(java.lang.String name,
                          IProfile profile,
                          java.lang.Object targetObject,
                          java.lang.Class targetObjectType)
Method for retrieving facets. Uses passed targetObjectClass, therefore you can pass null targetObjects !

Returns:
the facet (with assigned context if implementing) if found, null if not found

getDescriptors

FacetDescriptor[] getDescriptors(IProfile profile,
                                 java.lang.Class targetObjectType)
Return all the facet descriptors that match passed profile and object type, handling inheritance.



Copyright © 2011. All Rights Reserved.