GigaSpaces XAP 9.5 API

org.openspaces.grid.gsm
Class ElasticConfigBean

java.lang.Object
  extended by org.openspaces.grid.gsm.ElasticConfigBean
All Implemented Interfaces:
Bean

public class ElasticConfigBean
extends Object
implements Bean


Constructor Summary
ElasticConfigBean()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a bean factory after it has set all bean properties.
 void destroy()
          Invoked by a bean factory on destruction of a singleton.
 Map<String,String> getProperties()
           
 void setAdmin(Admin admin)
          Set the Admin instance to be used by this Bean.
 void setProperties(Map<String,String> properties)
          The bean properties supplied using a client side bean configuration object, or by plain String key-value pairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticConfigBean

public ElasticConfigBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Description copied from interface: Bean
Invoked by a bean factory after it has set all bean properties. This method allows the bean instance to perform non-blocking initialization, which is only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface Bean
Throws:
Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails.
See Also:
BeanConfigurationException, BeanInitializationException

destroy

public void destroy()
             throws Exception
Description copied from interface: Bean
Invoked by a bean factory on destruction of a singleton.

Specified by:
destroy in interface Bean
Throws:
Exception - in case of shutdown errors. Exceptions will get logged but not re-thrown to allow other beans to release their resources too.
See Also:
BeanConfigException

getProperties

public Map<String,String> getProperties()
Specified by:
getProperties in interface Bean
Returns:
properties used to configure this bean.

setAdmin

public void setAdmin(Admin admin)
Description copied from interface: Bean
Set the Admin instance to be used by this Bean.

Specified by:
setAdmin in interface Bean
Parameters:
admin - an Admin instance.

setProperties

public void setProperties(Map<String,String> properties)
Description copied from interface: Bean
The bean properties supplied using a client side bean configuration object, or by plain String key-value pairs.

Specified by:
setProperties in interface Bean
Parameters:
properties - properties to configure this bean.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.