com.prosysopc.ua.server.instantiation
Class InstanceDeclarationHierarchyCache

java.lang.Object
  extended by com.prosysopc.ua.server.instantiation.InstanceDeclarationHierarchyCache

public class InstanceDeclarationHierarchyCache
extends Object

A cache for InstanceDeclrationHierarchy for different UaTypes.


Constructor Summary
InstanceDeclarationHierarchyCache()
          Create new cache.
 
Method Summary
 void clear()
          Clears the cache.
 InstanceDeclarationHierarchy getForType(UaType type)
          Returns InstanceDeclarationHierarchy of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceDeclarationHierarchyCache

public InstanceDeclarationHierarchyCache()
Create new cache.

Method Detail

clear

public void clear()
Clears the cache.


getForType

public InstanceDeclarationHierarchy getForType(UaType type)
                                        throws InstanceDeclarationHierarchyException
Returns InstanceDeclarationHierarchy of the given type. The construction of the hierarchy is cached, and subsequent calls to this method get the hierarchy from the cache.

Throws:
InstanceDeclarationHierarchyException - if there is an error


Copyright © 2018. All rights reserved.