org.jboss.seam.remoting
Class MetadataCache

java.lang.Object
  extended by org.jboss.seam.remoting.MetadataCache

@ApplicationScoped
public class MetadataCache
extends Object

Caches BeanMetadata instances

Author:
Shane Bryzak

Constructor Summary
MetadataCache()
           
 
Method Summary
 Map<String,Type> getAccessibleProperties(Class<?> cls)
          A helper method, used internally by InterfaceGenerator and also when serializing responses.
 Set<Class<?>> getDependencies(Class<?> beanType)
          Returns the metadata for the specified bean type and all of its reachable dependencies
protected  String getFieldType(Type type)
          Returns the remoting "type" for a specified class.
 BeanMetadata getMetadata(Class<?> beanClass)
           
 Set<BeanMetadata> loadBeans(Set<String> names)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataCache

public MetadataCache()
Method Detail

getMetadata

public BeanMetadata getMetadata(Class<?> beanClass)

loadBeans

@WebRemote
public Set<BeanMetadata> loadBeans(Set<String> names)

getDependencies

public Set<Class<?>> getDependencies(Class<?> beanType)
Returns the metadata for the specified bean type and all of its reachable dependencies

Parameters:
beanType -
Returns:

getFieldType

protected String getFieldType(Type type)
Returns the remoting "type" for a specified class.

Parameters:
type - Type The type for which to return the remoting type.
Returns:
String The remoting type for the specified type.

getAccessibleProperties

public Map<String,Type> getAccessibleProperties(Class<?> cls)
A helper method, used internally by InterfaceGenerator and also when serializing responses. Returns a list of the property names for the specified class which should be included in the generated interface for the type.

Parameters:
cls - Class The class to scan for accessible properties
Returns:
Set A Set containing the accessible property names


Copyright © 2011 Seam Framework. All Rights Reserved.