Package com.zfabrik.impl.components.main
Class MainProgramResource
- java.lang.Object
-
- com.zfabrik.resources.provider.Resource
-
- com.zfabrik.impl.components.main.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.
-
-
-
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 classcom.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.
-
-