Class MainProgramResource


  • public class MainProgramResource
    extends com.zfabrik.resources.provider.Resource
    Resource implementation for main programs that are to be executed using the MainRunner utility for embedded Z2 execution.

    All a component needs to declare is the component type com.zfabrik.mainProgram and the class name of the component implementing a main method.

     com.zfabrik.component.type=com.zfabrik.mainProgram
     component.className=<name of the main method class>
     
    Author:
    hb
    • Constructor Summary

      Constructors 
      Constructor Description
      MainProgramResource​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T as​(java.lang.Class<T> clz)
      Retrieve a typed representation of the resource.
      • Methods inherited from class com.zfabrik.resources.provider.Resource

        as, handle, init, init, invalidate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainProgramResource

        public MainProgramResource​(java.lang.String name)
    • Method Detail

      • as

        public <T> T as​(java.lang.Class<T> clz)
        Description copied from class: com.zfabrik.resources.provider.Resource
        Retrieve a typed representation of the resource.

        Overrides:
        as in class com.zfabrik.resources.provider.Resource
        Parameters:
        clz - expected return type
        Returns:
        the expected return type instance represented by the resource or null if the type facade is not supported.