public class FromStack extends ChannelProvider
Constructor and Description |
---|
FromStack() |
FromStack(ProviderAsStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
Channel |
get()
Gets or creates an object of type
T . |
int |
getChannelIndex() |
ProviderAsStack |
getStack()
Provides a stack.
|
String |
getStackProviderID()
Specifies the ID of an existing stack.
|
void |
setChannelIndex(int channelIndex) |
void |
setStack(ProviderAsStack stack)
Provides a stack.
|
void |
setStackProviderID(String stackProviderID)
Specifies the ID of an existing stack.
|
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public FromStack(ProviderAsStack stack)
public FromStack()
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<ChannelProvider>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic Channel get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.public int getChannelIndex()
public void setChannelIndex(int channelIndex)
public String getStackProviderID()
stack
must be specified.public void setStackProviderID(String stackProviderID)
stack
must be specified.public ProviderAsStack getStack()
stackProviderID
must be
specified.public void setStack(ProviderAsStack stack)
stackProviderID
must be
specified.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.