super(finder);
}
public void process(JBossSessionBeanMetaData metaData, Class<?> type)
{
Clustered annotation = finder.getAnnotation(type, Clustered.class);
if(annotation == null)
return;
ClusterConfigMetaData clustered = new ClusterConfigMetaData();
clustered.setBeanLoadBalancePolicy(annotation.loadBalancePolicy());
clustered.setHomeLoadBalancePolicy(annotation.homeLoadBalancePolicy());
clustered.setPartitionName(annotation.partition());
clustered.setDescriptions(ProcessorUtils.getDescription(" @Clustered for bean: " + type));
metaData.setClusterConfig(clustered);
metaData.setClustered(true);
}