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 SystemOutLoggerDEFAULT_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:
getDefaultTypeUsesin interfaceIEntityAccess
-
isDomainInstance
public boolean isDomainInstance(Object value)
- Specified by:
isDomainInstancein interfaceIEntityAccess- Returns:
- x
-
isEntityClass
public boolean isEntityClass(IType cls)
- Specified by:
isEntityClassin interfaceIEntityAccess- Returns:
- x
-
getEntityInstanceFrom
public Object getEntityInstanceFrom(Object entity, IType classEntity)
- Specified by:
getEntityInstanceFromin interfaceIEntityAccess- Returns:
- x
-
areBeansEqual
public boolean areBeansEqual(Object bean1, Object bean2)
- Specified by:
areBeansEqualin interfaceIEntityAccess- Returns:
- x
-
verifyValueForType
public boolean verifyValueForType(IType type, Object value) throws RuntimeException
- Specified by:
verifyValueForTypein interfaceIEntityAccess- Parameters:
type-value-- Returns:
- Throws:
RuntimeException
-
makeStringFrom
public String makeStringFrom(Object obj)
- Specified by:
makeStringFromin interfaceIEntityAccess
-
getHashedEntityId
public long getHashedEntityId(String strId, IType classEntity)
- Specified by:
getHashedEntityIdin interfaceIEntityAccess- Returns:
- x
-
isInternal
public boolean isInternal(IType cls)
- Specified by:
isInternalin interfaceIEntityAccess- Returns:
- x
-
getLogger
public ILogger getLogger()
- Specified by:
getLoggerin interfaceIEntityAccess
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceIEntityAccess
-
getCurrentTime
public Date getCurrentTime()
- Specified by:
getCurrentTimein interfaceIEntityAccess
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZonein interfaceIEntityAccess
-
addEnhancementMethods
public void addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)
- Specified by:
addEnhancementMethodsin interfaceIEntityAccess
-
addEnhancementProperties
public void addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)
- Specified by:
addEnhancementPropertiesin interfaceIEntityAccess
-
getPluginClassLoader
public ClassLoader getPluginClassLoader()
- Specified by:
getPluginClassLoaderin interfaceIEntityAccess
-
getPluginRepositories
public StringBuilder getPluginRepositories()
- Specified by:
getPluginRepositoriesin interfaceIEntityAccess
-
getWebServerPaths
public String getWebServerPaths()
- Specified by:
getWebServerPathsin interfaceIEntityAccess
-
isUnreachableCodeDetectionOn
public boolean isUnreachableCodeDetectionOn()
- Specified by:
isUnreachableCodeDetectionOnin interfaceIEntityAccess
-
getKeyType
public IType getKeyType()
- Specified by:
getKeyTypein interfaceIEntityAccess
-
getEntityIdProperty
public IPropertyInfo getEntityIdProperty(IType rootType)
- Specified by:
getEntityIdPropertyin interfaceIEntityAccess
-
shouldAddWarning
public boolean shouldAddWarning(IType type, IParseIssue warning)
- Specified by:
shouldAddWarningin interfaceIEntityAccess
-
getLanguageLevel
public ILanguageLevel getLanguageLevel()
- Specified by:
getLanguageLevelin interfaceIEntityAccess
-
getGosuClassLoadingObservers
public List<IGosuClassLoadingObserver> getGosuClassLoadingObservers()
- Specified by:
getGosuClassLoadingObserversin interfaceIEntityAccess
-
areUsesStatementsAllowedInStatementLists
public boolean areUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)
- Specified by:
areUsesStatementsAllowedInStatementListsin interfaceIEntityAccess
-
getAdditionalSourceRoots
public List<IDirectory> getAdditionalSourceRoots()
- Specified by:
getAdditionalSourceRootsin interfaceIEntityAccess
-
reloadedTypes
public void reloadedTypes(String[] types)
- Specified by:
reloadedTypesin interfaceIEntityAccess
-
getExtendedTypeDataFactory
public ExtendedTypeDataFactory getExtendedTypeDataFactory(String typeName)
- Specified by:
getExtendedTypeDataFactoryin interfaceIEntityAccess
-
getLocalizedTypeName
public String getLocalizedTypeName(IType type)
- Specified by:
getLocalizedTypeNamein interfaceIEntityAccess
-
getLocalizedTypeInfoName
public String getLocalizedTypeInfoName(IType type)
- Specified by:
getLocalizedTypeInfoNamein interfaceIEntityAccess
-
-