|
||||||||||
| 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
| Field Summary | |
|---|---|
private IFacetContextFactory |
facetContextFactory
the facet context factory to create contexts |
private IFacetDescriptorManager |
facetDescriptorManager
the descriptors manager |
private IFacetFactory |
facetFactory
the facet factory to be used for facet instantiation |
private static JFacetsLogger |
logger
the logger |
private IProfileRepository |
profileRepo
a ref to the profile repository |
| Constructor Summary | |
|---|---|
FacetRepositoryImpl(IProfileRepository pRepo,
IFacetFactory facetFactory,
IFacetContextFactory facetContextFactory,
IFacetDescriptorManager facetDescriptorManager)
everything loaded at construction |
|
| Method Summary | |
|---|---|
private java.lang.Object |
climbProfiles(java.lang.String facetName,
IProfile profile,
java.lang.Object targetObject,
java.lang.Class targetObjectClass,
java.util.List<FacetDescriptor> discardedDescriptors)
|
private java.lang.Object |
climbTypes(java.lang.String facetName,
IProfile profile,
java.lang.Object targetObject,
java.lang.Class targetObjectClass,
java.util.List<java.lang.Class> alreadyCheckedClasses,
java.util.List<FacetDescriptor> discardedDescriptors)
|
FacetDescriptor[] |
getDescriptors(IProfile profile,
java.lang.Class targetObjectType)
Return all the facet descriptors that match passed profile and object type, handling inheritance. |
static java.lang.Class[] |
getDirectSuperTypes(java.lang.Class objectType)
returns first level supertypes for passed objectType |
java.lang.Object |
getFacet(java.lang.String facetName,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IProfileRepository profileRepo
private IFacetFactory facetFactory
private IFacetContextFactory facetContextFactory
private IFacetDescriptorManager facetDescriptorManager
private static final JFacetsLogger logger
| Constructor Detail |
|---|
public FacetRepositoryImpl(IProfileRepository pRepo,
IFacetFactory facetFactory,
IFacetContextFactory facetContextFactory,
IFacetDescriptorManager facetDescriptorManager)
| Method Detail |
|---|
public static java.lang.Class[] getDirectSuperTypes(java.lang.Class objectType)
objectType
public FacetDescriptor[] getDescriptors(IProfile profile,
java.lang.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 java.lang.Object getFacet(java.lang.String facetName,
IProfile profile,
java.lang.Object targetObject)
IFacetRepositorytargetObject's
run-time type.
getFacet in interface IFacetRepository
public java.lang.Object getFacet(java.lang.String name,
IProfile profile,
java.lang.Object targetObject,
java.lang.Class targetObjectType)
IFacetRepositorytargetObjectClass, therefore
you can pass null targetObjects !
getFacet in interface IFacetRepository
private java.lang.Object climbProfiles(java.lang.String facetName,
IProfile profile,
java.lang.Object targetObject,
java.lang.Class targetObjectClass,
java.util.List<FacetDescriptor> discardedDescriptors)
private java.lang.Object climbTypes(java.lang.String facetName,
IProfile profile,
java.lang.Object targetObject,
java.lang.Class targetObjectClass,
java.util.List<java.lang.Class> alreadyCheckedClasses,
java.util.List<FacetDescriptor> discardedDescriptors)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||