类 CachedCategory
java.lang.Object
org.xmeta.thingManagers.CachedCategory
- 所有已实现的接口:
Category
- 直接已知子类:
FileCategory,JarCategory,JdbcCategory,RedisCategory
子包和模型索引都预先读取并缓存的包。
- 作者:
- zhangyuxiang
-
字段概要
字段修饰符和类型字段说明子包列表protected ThingClassLoaderprotected String包名称protected Category父包protected boolean是否已经刷新过protected List<ThingIndex>模型索引列表protected ThingManager模型管理器 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddCategory(Category category) 添加子包。voidaddThingIndex(ThingIndex thingIndex) 添加模型索引。getCategory(String name) 通过名称返回指定的下级目录。获取下一级的目录的列表。返回Category对应的ClassLoader。getName()返回当前目录的名称。返回上级目录。返回目录的简写。通过模型的名称获得当前目录下的模型。返回当前目录下的所有模型的索引列表,不包含子目录。getThingIndexs(String descriptor) 根据描述返回模型索引列表。返回此目录所属的模型管理者。获得当前目录下的模型列表。返回指定模型的列表。iterator(boolean includeChildCategory) 遍历当前目录下的所有模型。通过指定的描述者名称遍历当前目录下的所有模型。voidsetClassLoader(ThingClassLoader classLoader) 设置当前Category的类加载器。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.xmeta.Category
getFilePath, refresh, refresh
-
字段详细资料
-
childCategorys
子包列表 -
thingIndexs
模型索引列表 -
parent
父包 -
name
包名称 -
thingManager
模型管理器 -
refreshed
protected boolean refreshed是否已经刷新过 -
classLoader
-
-
构造器详细资料
-
CachedCategory
-
-
方法详细资料
-
getCategory
从接口复制的说明:Category通过名称返回指定的下级目录。- 指定者:
getCategory在接口中Category- 参数:
name- 下级目录的名称- 返回:
- 下级目录,如果不存在返回null
-
getCategorys
从接口复制的说明:Category获取下一级的目录的列表。- 指定者:
getCategorys在接口中Category- 返回:
- 下一级目录的列表
-
getName
从接口复制的说明:Category返回当前目录的名称。 -
getParent
从接口复制的说明:Category返回上级目录。 -
getSimpleName
从接口复制的说明:Category返回目录的简写。- 指定者:
getSimpleName在接口中Category- 返回:
- 目录名
-
getThing
从接口复制的说明:Category通过模型的名称获得当前目录下的模型。 -
getThingIndexs
从接口复制的说明:Category返回当前目录下的所有模型的索引列表,不包含子目录。- 指定者:
getThingIndexs在接口中Category- 返回:
- 模型的索引列表
-
getThingIndexs
从接口复制的说明:Category根据描述返回模型索引列表。- 指定者:
getThingIndexs在接口中Category- 参数:
descriptor- 描述者- 返回:
- 模型索引列表
-
getThingManager
从接口复制的说明:Category返回此目录所属的模型管理者。- 指定者:
getThingManager在接口中Category- 返回:
- 模型管理者
-
getThings
从接口复制的说明:Category获得当前目录下的模型列表。 取具体模型是请用World,World负责缓存。 -
getThings
从接口复制的说明:Category返回指定模型的列表。 取具体模型是请用World,World负责缓存。 -
iterator
从接口复制的说明:Category遍历当前目录下的所有模型。 取具体模型是请用World,World负责缓存。 -
iterator
从接口复制的说明:Category通过指定的描述者名称遍历当前目录下的所有模型。 取具体模型是请用World,World负责缓存。 -
addCategory
添加子包。- 参数:
category- 包
-
addThingIndex
添加模型索引。- 参数:
thingIndex- 模型索引
-
getClassLoader
从接口复制的说明:Category返回Category对应的ClassLoader。如果当前classLoader为null一般使用父级的classLoader。- 指定者:
getClassLoader在接口中Category- 返回:
-
setClassLoader
从接口复制的说明:Category设置当前Category的类加载器。- 指定者:
setClassLoader在接口中Category
-