Package gw.internal.gosu.properties
Class PropertiesTypeLoader
- java.lang.Object
-
- gw.config.BaseService
-
- gw.lang.reflect.TypeLoaderBase
-
- gw.internal.gosu.properties.PropertiesTypeLoader
-
- All Implemented Interfaces:
IService
,ITypeLoader
,IPluginHost
public class PropertiesTypeLoader extends TypeLoaderBase
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
_namespaces
-
Fields inherited from class gw.lang.reflect.TypeLoaderBase
_module, _typeNames
-
Fields inherited from interface gw.lang.reflect.ITypeLoader
NO_TYPES
-
-
Constructor Summary
Constructors Constructor Description PropertiesTypeLoader(IModule module)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
computeTypeNames()
Set<String>
getAllNamespaces()
List<String>
getHandledPrefixes()
<T> T
getInterface(Class<T> apiInterface)
IType
getType(String fullyQualifiedName)
String[]
getTypesForFile(IFile file)
boolean
handlesFile(IFile file)
boolean
handlesNonPrefixLoads()
boolean
hasNamespace(String namespace)
static boolean
isDisplayPropertiesFile(String fileName)
RefreshKind
refreshedFile(IFile file, String[] types, RefreshKind kind)
void
refreshedImpl()
void
refreshedNamespace(String namespace, IDirectory dir, RefreshKind kind)
-
Methods inherited from class gw.lang.reflect.TypeLoaderBase
clearTypeNames, deleteIndexFile, getAllTypeNames, getModule, getNamespaceForDirectory, getResource, getTypeNames, getTypeNames, handlesDirectory, isCaseSensitive, loadTypeNames, refreshed, refreshedTypes, refreshedTypesImpl, saveTypeNames, shouldCacheTypeNames, showTypeNamesInIDE, shutdown, toString
-
-
-
-
Constructor Detail
-
PropertiesTypeLoader
public PropertiesTypeLoader(IModule module)
-
-
Method Detail
-
handlesNonPrefixLoads
public boolean handlesNonPrefixLoads()
-
handlesFile
public boolean handlesFile(IFile file)
- Specified by:
handlesFile
in interfaceITypeLoader
- Overrides:
handlesFile
in classTypeLoaderBase
-
isDisplayPropertiesFile
public static boolean isDisplayPropertiesFile(String fileName)
-
refreshedImpl
public void refreshedImpl()
- Overrides:
refreshedImpl
in classTypeLoaderBase
-
getTypesForFile
public String[] getTypesForFile(IFile file)
- Specified by:
getTypesForFile
in interfaceITypeLoader
- Overrides:
getTypesForFile
in classTypeLoaderBase
-
refreshedFile
public RefreshKind refreshedFile(IFile file, String[] types, RefreshKind kind)
- Specified by:
refreshedFile
in interfaceITypeLoader
- Overrides:
refreshedFile
in classTypeLoaderBase
-
hasNamespace
public boolean hasNamespace(String namespace)
-
refreshedNamespace
public void refreshedNamespace(String namespace, IDirectory dir, RefreshKind kind)
-
getInterface
public <T> T getInterface(Class<T> apiInterface)
-
-