public class ConnectorInitVisitor extends TypeVisitor {
@Override
public void visitConnector(TreeLogger logger, JClassType type,
ConnectorBundle bundle) throws UnableToCompleteException {
Connect connectAnnotation = type.getAnnotation(Connect.class);
if (connectAnnotation != null) {
logger.log(Type.INFO, type.getName() + " will be in the "
+ bundle.getName().replaceAll("^_*", "") + " bundle");
String identifier = connectAnnotation.value().getCanonicalName();
bundle.setIdentifier(type, identifier);
bundle.setNeedsGwtConstructor(type);
}
}