Package org.hippoecm.frontend.types
Class TypeLocator
- java.lang.Object
-
- org.hippoecm.frontend.types.TypeLocator
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
,ITypeLocator
public class TypeLocator extends Object implements ITypeLocator
The TypeLocator finds the ITypeDescriptor for a particular type, given a number ofIStore
s. It is intended to be used by ITypeDescriptor implementations to be able to do their own lookup. It should not be used by store implementations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeLocator(IStore<ITypeDescriptor>[] stores)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach()
List<ITypeDescriptor>
getSubTypes(String type)
Retrieves the list of types that descend from the specified type.ITypeDescriptor
locate(String type)
-
-
-
Constructor Detail
-
TypeLocator
public TypeLocator(IStore<ITypeDescriptor>[] stores)
-
-
Method Detail
-
locate
public ITypeDescriptor locate(String type) throws StoreException
- Specified by:
locate
in interfaceITypeLocator
- Throws:
StoreException
-
getSubTypes
public List<ITypeDescriptor> getSubTypes(String type) throws StoreException
Description copied from interface:ITypeLocator
Retrieves the list of types that descend from the specified type.- Specified by:
getSubTypes
in interfaceITypeLocator
- Throws:
StoreException
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
-