Package de.mhus.lib.core.lang
Class Base
- java.lang.Object
-
- de.mhus.lib.core.lang.Base
-
- Direct Known Subclasses:
DefaultBase
public abstract class Base extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddObject(Class<?> ifc, Object obj)abstract voiddestroy()BasegetParent()abstract booleanisBase(Class<?> ifc)abstract booleanisDestroyed()<T> Tlookup(Class<T> ifc)abstract <T,D extends T>
Tlookup(Class<T> ifc, Class<D> def)abstract booleanremoveObject(Class<?> ifc)voidsetLocal(Class<?> ifc)Define this interface as local handled.
-
-
-
Constructor Detail
-
Base
public Base(Base parent)
-
-
Method Detail
-
destroy
public abstract void destroy()
-
isDestroyed
public abstract boolean isDestroyed()
-
lookup
public <T> T lookup(Class<T> ifc)
-
isBase
public abstract boolean isBase(Class<?> ifc)
-
removeObject
public abstract boolean removeObject(Class<?> ifc)
-
getParent
public Base getParent()
-
setLocal
public void setLocal(Class<?> ifc)
Define this interface as local handled. The base will not ask the parent base to lookup this interface.- Parameters:
ifc-
-
-