Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.service
Class ErraiServiceConfiguratorImpl

java.lang.Object
  extended by org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl
All Implemented Interfaces:
ErraiServiceConfigurator

public class ErraiServiceConfiguratorImpl
extends Object
implements ErraiServiceConfigurator

Default implementation of the ErraiBus server-side configurator.


Constructor Summary
ErraiServiceConfiguratorImpl()
          Initializes the ErraiServiceConfigurator with a specified ServerMessageBus
 
Method Summary
 boolean getBooleanProperty(String key)
          Gets the property associated with the key.
 Map<Class<?>,ResourceProvider> getExtensionBindings()
           
 Integer getIntProperty(String key)
          Gets the property associated with the key.
 MetaDataScanner getMetaDataScanner()
          Provides access to the MetaDataScanner that is used to read component annotation meta data.
 String getProperty(String key)
          Gets the property associated with the key
<T> T
getResource(Class<? extends T> resourceClass)
          Gets the resources attached to the specified resource class
 Map<String,ResourceProvider> getResourceProviders()
          Gets the resource providers associated with this configurator
 Set<Class> getSerializableTypes()
           
 boolean hasProperty(String key)
          Returns true if the configuration has this key property
 void lockdown()
           
 void setProperty(String key, String value)
          Sets a property with the specified key and value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErraiServiceConfiguratorImpl

@Inject
public ErraiServiceConfiguratorImpl()
Initializes the ErraiServiceConfigurator with a specified ServerMessageBus

Method Detail

lockdown

public void lockdown()

getMetaDataScanner

public MetaDataScanner getMetaDataScanner()
Description copied from interface: ErraiServiceConfigurator
Provides access to the MetaDataScanner that is used to read component annotation meta data.

Specified by:
getMetaDataScanner in interface ErraiServiceConfigurator
Returns:

getResourceProviders

public Map<String,ResourceProvider> getResourceProviders()
Gets the resource providers associated with this configurator

Specified by:
getResourceProviders in interface ErraiServiceConfigurator
Returns:
the resource providers associated with this configurator

hasProperty

public boolean hasProperty(String key)
Returns true if the configuration has this key property

Specified by:
hasProperty in interface ErraiServiceConfigurator
Parameters:
key - - the property too search for
Returns:
false if the property does not exist

getProperty

public String getProperty(String key)
Gets the property associated with the key

Specified by:
getProperty in interface ErraiServiceConfigurator
Parameters:
key - - the key to search for
Returns:
the property, if it exists, null otherwise

getBooleanProperty

public boolean getBooleanProperty(String key)
Description copied from interface: ErraiServiceConfigurator
Gets the property associated with the key. Returns true if the flag is set true, or false if not or if the property is undefined.

Specified by:
getBooleanProperty in interface ErraiServiceConfigurator
Returns:

getIntProperty

public Integer getIntProperty(String key)
Description copied from interface: ErraiServiceConfigurator
Gets the property associated with the key. Returns the number if set, or null if not set. Throws a NumberFormatException if the underlying key is not a number.

Specified by:
getIntProperty in interface ErraiServiceConfigurator
Returns:

getResource

public <T> T getResource(Class<? extends T> resourceClass)
Gets the resources attached to the specified resource class

Specified by:
getResource in interface ErraiServiceConfigurator
Type Parameters:
T - - the class type
Parameters:
resourceClass - - the class to search the resources for
Returns:
the resource of type T

getExtensionBindings

public Map<Class<?>,ResourceProvider> getExtensionBindings()

getSerializableTypes

public Set<Class> getSerializableTypes()

setProperty

public void setProperty(String key,
                        String value)
Description copied from interface: ErraiServiceConfigurator
Sets a property with the specified key and value

Specified by:
setProperty in interface ErraiServiceConfigurator
Parameters:
key - the name of the property.
value - the string value of the property.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.