Package gw.internal.gosu.parser
Class DefaultEntityAccess
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.parser.DefaultEntityAccess
-
- All Implemented Interfaces:
IService
,IEntityAccess
,IPluginHost
- Direct Known Subclasses:
GWEntityAccess
,ShellEntityAccess
public class DefaultEntityAccess extends BaseService implements IEntityAccess
-
-
Field Summary
Fields Modifier and Type Field Description static SystemOutLogger
DEFAULT_LOGGER
-
Constructor Summary
Constructors Constructor Description DefaultEntityAccess()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.plugin.IPluginHost
getInterface
-
-
-
-
Field Detail
-
DEFAULT_LOGGER
public static final SystemOutLogger DEFAULT_LOGGER
-
-
Method Detail
-
instance
public static DefaultEntityAccess instance()
-
getDefaultTypeLoader
public ITypeLoader getDefaultTypeLoader()
-
getDefaultTypeUses
public ITypeUsesMap getDefaultTypeUses()
- Specified by:
getDefaultTypeUses
in interfaceIEntityAccess
-
isDomainInstance
public boolean isDomainInstance(Object value)
- Specified by:
isDomainInstance
in interfaceIEntityAccess
- Returns:
- x
-
isEntityClass
public boolean isEntityClass(IType cls)
- Specified by:
isEntityClass
in interfaceIEntityAccess
- Returns:
- x
-
getEntityInstanceFrom
public Object getEntityInstanceFrom(Object entity, IType classEntity)
- Specified by:
getEntityInstanceFrom
in interfaceIEntityAccess
- Returns:
- x
-
areBeansEqual
public boolean areBeansEqual(Object bean1, Object bean2)
- Specified by:
areBeansEqual
in interfaceIEntityAccess
- Returns:
- x
-
verifyValueForType
public boolean verifyValueForType(IType type, Object value) throws RuntimeException
- Specified by:
verifyValueForType
in interfaceIEntityAccess
- Parameters:
type
-value
-- Returns:
- Throws:
RuntimeException
-
makeStringFrom
public String makeStringFrom(Object obj)
- Specified by:
makeStringFrom
in interfaceIEntityAccess
-
getHashedEntityId
public long getHashedEntityId(String strId, IType classEntity)
- Specified by:
getHashedEntityId
in interfaceIEntityAccess
- Returns:
- x
-
isInternal
public boolean isInternal(IType cls)
- Specified by:
isInternal
in interfaceIEntityAccess
- Returns:
- x
-
getLogger
public ILogger getLogger()
- Specified by:
getLogger
in interfaceIEntityAccess
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceIEntityAccess
-
getCurrentTime
public Date getCurrentTime()
- Specified by:
getCurrentTime
in interfaceIEntityAccess
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceIEntityAccess
-
addEnhancementMethods
public void addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)
- Specified by:
addEnhancementMethods
in interfaceIEntityAccess
-
addEnhancementProperties
public void addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)
- Specified by:
addEnhancementProperties
in interfaceIEntityAccess
-
getPluginClassLoader
public ClassLoader getPluginClassLoader()
- Specified by:
getPluginClassLoader
in interfaceIEntityAccess
-
getPluginRepositories
public StringBuilder getPluginRepositories()
- Specified by:
getPluginRepositories
in interfaceIEntityAccess
-
getWebServerPaths
public String getWebServerPaths()
- Specified by:
getWebServerPaths
in interfaceIEntityAccess
-
isUnreachableCodeDetectionOn
public boolean isUnreachableCodeDetectionOn()
- Specified by:
isUnreachableCodeDetectionOn
in interfaceIEntityAccess
-
getKeyType
public IType getKeyType()
- Specified by:
getKeyType
in interfaceIEntityAccess
-
getEntityIdProperty
public IPropertyInfo getEntityIdProperty(IType rootType)
- Specified by:
getEntityIdProperty
in interfaceIEntityAccess
-
shouldAddWarning
public boolean shouldAddWarning(IType type, IParseIssue warning)
- Specified by:
shouldAddWarning
in interfaceIEntityAccess
-
getLanguageLevel
public ILanguageLevel getLanguageLevel()
- Specified by:
getLanguageLevel
in interfaceIEntityAccess
-
getGosuClassLoadingObservers
public List<IGosuClassLoadingObserver> getGosuClassLoadingObservers()
- Specified by:
getGosuClassLoadingObservers
in interfaceIEntityAccess
-
areUsesStatementsAllowedInStatementLists
public boolean areUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)
- Specified by:
areUsesStatementsAllowedInStatementLists
in interfaceIEntityAccess
-
getAdditionalSourceRoots
public List<IDirectory> getAdditionalSourceRoots()
- Specified by:
getAdditionalSourceRoots
in interfaceIEntityAccess
-
reloadedTypes
public void reloadedTypes(String[] types)
- Specified by:
reloadedTypes
in interfaceIEntityAccess
-
getExtendedTypeDataFactory
public ExtendedTypeDataFactory getExtendedTypeDataFactory(String typeName)
- Specified by:
getExtendedTypeDataFactory
in interfaceIEntityAccess
-
getLocalizedTypeName
public String getLocalizedTypeName(IType type)
- Specified by:
getLocalizedTypeName
in interfaceIEntityAccess
-
getLocalizedTypeInfoName
public String getLocalizedTypeInfoName(IType type)
- Specified by:
getLocalizedTypeInfoName
in interfaceIEntityAccess
-
-