|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jfacets.impl.FacetRepositoryImpl
public class FacetRepositoryImpl
Implementation of the facet repository
| Constructor Summary | |
|---|---|
FacetRepositoryImpl(IProfileRepository pRepo,
IFacetFactory facetFactory,
IFacetContextFactory facetContextFactory,
IFacetDescriptorManager facetDescriptorManager)
everything loaded at construction |
|
| Method Summary | |
|---|---|
FacetDescriptor[] |
getDescriptors(IProfile profile,
Class targetObjectType)
Return all the facet descriptors that match passed profile and object type, handling inheritance. |
static Class[] |
getDirectSuperTypes(Class objectType)
returns first level supertypes for passed objectType |
Object |
getFacet(String facetName,
IProfile profile,
Object targetObject)
Method for retrieving facets. |
Object |
getFacet(String name,
IProfile profile,
Object targetObject,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacetRepositoryImpl(IProfileRepository pRepo,
IFacetFactory facetFactory,
IFacetContextFactory facetContextFactory,
IFacetDescriptorManager facetDescriptorManager)
| Method Detail |
|---|
public static Class[] getDirectSuperTypes(Class objectType)
objectType
public FacetDescriptor[] getDescriptors(IProfile profile,
Class targetObjectType)
IFacetRepository
getDescriptors in interface IFacetRepositorypublic IProfileRepository getProfileRepository()
IFacetRepository
getProfileRepository in interface IFacetRepositorypublic IFacetFactory getFacetFactory()
IFacetRepository
getFacetFactory in interface IFacetRepositorypublic IFacetContextFactory getFacetContextFactory()
IFacetRepository
getFacetContextFactory in interface IFacetRepositorypublic IFacetDescriptorManager getFacetDescriptorManager()
IFacetRepository
getFacetDescriptorManager in interface IFacetRepository
public Object getFacet(String facetName,
IProfile profile,
Object targetObject)
IFacetRepositorytargetObject's
run-time type.
getFacet in interface IFacetRepository
public Object getFacet(String name,
IProfile profile,
Object targetObject,
Class targetObjectType)
IFacetRepositorytargetObjectClass, therefore
you can pass null targetObjects !
getFacet in interface IFacetRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||