Package io.sundr.adapter.api
Class AdapterContext
- java.lang.Object
-
- io.sundr.model.AttributeSupport
-
- io.sundr.adapter.api.AdapterContext
-
- All Implemented Interfaces:
AdapterContextAware,io.sundr.model.Attributeable,io.sundr.model.Node
public class AdapterContext extends io.sundr.model.AttributeSupport implements AdapterContextAware
-
-
Field Summary
Fields Modifier and Type Field Description protected static AdapterContextINSTANCE-
Fields inherited from interface io.sundr.model.Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT
-
Fields inherited from interface io.sundr.model.Node
AT, CB, CC, CLP, COLN, COMA, CP, DOT, DQ, EMPTY, EQ, EXTENDS, GT, IMPLEMENTS, INDENT, JAVA_LANG, JAVA_LANG_ENUM, JAVA_LANG_OBJECT, JAVA_LANG_STRING, LT, NEWLINE, NEWLINE_PATTERN, OB, OC, OP, Q, SEMICOLN, SEMICOLN_SUFFIX_PATTERN, SPACE, STAR, THROWS, VARARG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdapterContextcreate(io.sundr.model.repo.DefinitionRepository definitionRepository)static AdapterContextcreate(io.sundr.model.repo.DefinitionRepository definitionRepository, Map<io.sundr.model.AttributeKey,Object> attributes)AdapterContextgetAdapterContext()static AdapterContextgetContext()io.sundr.model.repo.DefinitionRepositorygetDefinitionRepository()-
Methods inherited from class io.sundr.model.AttributeSupport
getAttribute, getAttributes, hasAttribute
-
-
-
-
Field Detail
-
INSTANCE
protected static AdapterContext INSTANCE
-
-
Method Detail
-
create
public static AdapterContext create(io.sundr.model.repo.DefinitionRepository definitionRepository)
-
create
public static AdapterContext create(io.sundr.model.repo.DefinitionRepository definitionRepository, Map<io.sundr.model.AttributeKey,Object> attributes)
-
getContext
public static AdapterContext getContext()
-
getDefinitionRepository
public io.sundr.model.repo.DefinitionRepository getDefinitionRepository()
-
getAdapterContext
public AdapterContext getAdapterContext()
- Specified by:
getAdapterContextin interfaceAdapterContextAware
-
-