Package org.apache.storm.flux.model
Class ObjectDef
java.lang.Object
org.apache.storm.flux.model.ObjectDef
- Direct Known Subclasses:
BeanDef
,TopologySourceDef
A representation of a Java object that given a className, constructor arguments,
and properties, can be instantiated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
void
setClassName
(String className) void
setConfigMethods
(List<ConfigMethodDef> configMethods) void
setConstructorArgs
(List<Object> constructorArgs) Sets the arguments for the constructor and checks for references.void
setFactory
(String factory) void
setFactoryArgs
(List<Object> factoryArgs) Sets factory method arguments and checks for references.void
setProperties
(List<PropertyDef> properties)
-
Constructor Details
-
ObjectDef
public ObjectDef()
-
-
Method Details
-
getClassName
-
setClassName
-
getConstructorArgs
-
setConstructorArgs
Sets the arguments for the constructor and checks for references.- Parameters:
constructorArgs
- Constructor arguments
-
hasConstructorArgs
public boolean hasConstructorArgs() -
hasReferences
public boolean hasReferences() -
getProperties
-
setProperties
-
getConfigMethods
-
setConfigMethods
-
hasFactory
public boolean hasFactory() -
hasFactoryArgs
public boolean hasFactoryArgs() -
getFactory
-
setFactory
-
getFactoryArgs
-
setFactoryArgs
Sets factory method arguments and checks for references.- Parameters:
factoryArgs
- factory method arguments
-