com.hammurapi.config.runtime
Interface ConfigurationContext<D extends org.eclipse.emf.ecore.EObject>

All Superinterfaces:
Context, DestroyableSink

public interface ConfigurationContext<D extends org.eclipse.emf.ecore.EObject>
extends Context, DestroyableSink

Configuration context for model elements.

Author:
Pavel Vlasov

Field Summary
 
Fields inherited from interface com.hammurapi.util.Context
INSTANCE
 
Method Summary
<T> T
findParent(Class<T> type)
          Finds object's parent of given type.
 ClassLoader getClassLoader()
           
 D getDefinition()
           
 FactoryConfig getFactoryConfig()
           
 Object[] getPath()
           
 
Methods inherited from interface com.hammurapi.util.Context
lookup, lookup, lookupAll
 
Methods inherited from interface com.hammurapi.config.runtime.DestroyableSink
addDestroyable
 

Method Detail

getDefinition

D getDefinition()
Returns:
ECore definition of given element.

getPath

Object[] getPath()
Returns:
Object's parents.

findParent

<T> T findParent(Class<T> type)
Finds object's parent of given type.

Type Parameters:
T -
Parameters:
type -
Returns:
Parent of given type or null.

getClassLoader

ClassLoader getClassLoader()
Returns:
Classloader for the component to load additional classes and resources.

getFactoryConfig

FactoryConfig getFactoryConfig()
Returns:
Factory config for configuring sub-components.