3
6ßL]  ã               @   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	   úD/tmp/pip-install-5sebvq2j/apptools/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   