a
    ¨ˆcÝ  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )z* The base class for all object factories. é    )Ú	HasTraitsc                   @   s   e Zd ZdZdd„ ZdS )ÚObjectFactoryz¾The base class for all object factories.

    An object factory accepts some information about how to create an object
    (such as a reference) and returns an instance of that object.

    c                 C   s   t ‚dS )z¼Creates an object using the specified state information.

        Returns None if the factory cannot create the object (ie. it does not
        recognise the state passed to it).

        N)ÚNotImplementedError)ÚselfÚstateÚnameÚcontext© r	   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/naming/object_factory.pyÚget_object_instance   s    z!ObjectFactory.get_object_instanceN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   r	   r	   r
   r      s   r   N)r   Z
traits.apir   r   r	   r	   r	   r
   Ú<module>
   s   