Class AccessorLibrary

    • Method Detail

      • populate

        public void populate()
                      throws InvalidStateException
        Populate the actor by reading the file specified by the source parameter. Note that the exception thrown here is a runtime exception, inappropriately. This is because execution of this method is deferred to the last possible moment, and it is often evaluated in a context where a compile-time exception cannot be thrown. Thus, extra care should be exercised to provide valid MoML specifications.
        Specified by:
        populate in interface LazyComposite
        Overrides:
        populate in class EntityLibrary
        Throws:
        InvalidStateException - If the source cannot be read, or if an exception is thrown parsing its MoML data.